/* Login, password and sign-up pages (uses landing.css tokens) */
.lp-auth { background: var(--lp-white); }
.au { display: grid; grid-template-columns: minmax(360px, 44%) 1fr; min-height: 100vh; }

/* brand side */
.au-side { position: relative; display: flex; flex-direction: column; padding: 40px 48px; color: #fff; overflow: hidden;
    background: radial-gradient(circle at 15% 0, rgba(193, 53, 132, .55), transparent 55%), radial-gradient(circle at 100% 100%, rgba(91, 46, 142, .45), transparent 50%), #15171d; }
.au-side__logo img { height: 48px; width: auto; max-width: 240px; object-fit: contain; }
.au-side__body { margin: auto 0; max-width: 440px; }
.au-side h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; font-weight: 800; }
html[dir="rtl"] .au-side h2 { line-height: 1.4; }
.au-side h2 span { display: block; background: linear-gradient(135deg, #e3b8f5, #f59ac9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.au-side p { color: rgba(255, 255, 255, .8); }
.au-side__list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; color: rgba(255, 255, 255, .88); }
.au-side__list li { position: relative; padding-inline-start: 34px; }
.au-side__list li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #f59ac9; font-size: 12px; font-weight: 800; }
.au-side__card { display: flex; align-items: center; gap: 12px; align-self: flex-start; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .14); animation: lp-bob 5s ease-in-out infinite; }
.au-side__card > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .15); font-size: 18px; }
.au-side__card b { display: block; color: #fff; font-size: 14px; }
.au-side__card small { color: rgba(255, 255, 255, .7); font-size: 12px; }

/* form side */
.au-main { display: flex; flex-direction: column; padding: 24px 32px; }
.au-top { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.au-top__logo { display: none; margin-inline-end: auto; }
.au-top__logo img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.au-box { width: 100%; max-width: 420px; margin: auto; padding: 32px 0; }
.au-box--wide { max-width: 560px; }
.au-box h1 { font-size: 30px; font-weight: 800; margin: 0 0 6px; }
.au-sub { margin: 0 0 26px; color: var(--lp-text); }
.au-foot { text-align: center; font-size: 13px; color: var(--lp-mute); margin: 0; }
.au-foot a:hover { color: var(--lp-brand); }

.au-field { margin-bottom: 16px; }
.au-field > label, .au-label { display: block; font-weight: 600; font-size: 14px; color: var(--lp-ink); margin-bottom: 6px; }
.au-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.au-label-row a { font-size: 13px; font-weight: 600; color: var(--lp-brand); }
.au-input { position: relative; }
.au-input input, .au-input select, .au-field textarea {
    width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid #e2e5ec; border-radius: 12px; background: #fff;
    font: inherit; font-size: 15px; color: var(--lp-ink); transition: border-color .15s, box-shadow .15s; outline: none;
}
.au-input input:focus, .au-input select:focus { border-color: var(--lp-brand); box-shadow: 0 0 0 4px rgba(91, 46, 142, .12); }
.au-input input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset !important; }
.au-input.has-eye input { padding-inline-end: 48px; }
.au-eye { position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; color: var(--lp-mute); display: grid; place-items: center; }
.au-eye:hover { background: var(--lp-soft); }
.au-eye svg { width: 20px; height: 20px; }
.au-eye .au-eye__off { display: none; }
.au-eye.is-on .au-eye__on { display: none; }
.au-eye.is-on .au-eye__off { display: block; }
.au-field.is-error input, .au-field.is-error select { border-color: #e5484d; }
.au-err { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: #d63a3f; }
.au-hint { display: block; margin-top: 6px; font-size: 13px; color: var(--lp-mute); }

.au-check { display: flex; align-items: center; gap: 10px; margin: 4px 0 20px; font-size: 14px; cursor: pointer; user-select: none; }
.au-check input { width: 18px; height: 18px; accent-color: var(--lp-brand); margin: 0; }
.au-submit { width: 100%; height: 50px; border: 0; font-size: 16px; }
.au-submit.is-busy { opacity: .7; pointer-events: none; }
.au-alt { margin: 22px 0 0; text-align: center; font-size: 14px; }
.au-alt a { color: var(--lp-brand); font-weight: 600; }

.au-alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; }
.au-alert--ok { background: #e3f7ed; color: #0f6b40; }
.au-alert--err { background: #fdecec; color: #a32025; }
.au-alert--info { background: #f3eafb; color: #48246f; }

.au-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.au-social a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border: 1.5px solid #e2e5ec; border-radius: 12px; font-weight: 600; color: var(--lp-ink); }
.au-social img { width: 18px; height: 18px; }
.au-or { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--lp-mute); font-size: 13px; }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: var(--lp-line); }

.au-demo { margin-bottom: 20px; padding: 12px 14px; border: 1px dashed #d9c4ee; border-radius: 12px; background: #f8f6fc; font-size: 13px; }
.au-demo b { color: var(--lp-ink); }
.au-demo button { border: 0; background: #fff; border: 1px solid var(--lp-line); border-radius: 8px; padding: 4px 10px; margin: 6px 6px 0 0; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }

.au-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.au-step { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; font-weight: 700; color: var(--lp-ink); }
.au-step span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #f3eafb; color: var(--lp-brand); font-size: 13px; }
.au-plans { display: grid; gap: 10px; margin-bottom: 18px; }
.au-plan { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid #e2e5ec; border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.au-plan input { position: absolute; opacity: 0; pointer-events: none; }
.au-plan__dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c9cdd8; }
.au-plan b { display: block; font-size: 15px; }
.au-plan small { color: var(--lp-mute); font-size: 13px; }
.au-plan__price { margin-inline-start: auto; font-weight: 800; color: var(--lp-ink); white-space: nowrap; }
.au-plan__price small { font-weight: 500; }
.au-plan:has(input:checked) { border-color: var(--lp-brand); background: #f8f6fc; }
.au-plan:has(input:checked) .au-plan__dot { border: 6px solid var(--lp-brand); }
.au-plan:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(91, 46, 142, .15); }
.au-hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
    .au { grid-template-columns: 1fr; }
    .au-side { display: none; }
    .au-top__logo { display: block; }
    .au-main { padding: 16px; }
    .au-box { padding: 28px 0; }
}
@media (max-width: 480px) {
    .au-grid2 { grid-template-columns: 1fr; }
    .au-box h1 { font-size: 26px; }
}

/* Restbits brand layer */
.au-side { background: radial-gradient(circle at 10% 0, rgba(255, 255, 255, .18), transparent 45%), radial-gradient(circle at 100% 100%, rgba(193, 53, 132, .9), transparent 55%), linear-gradient(160deg, #5B2E8E 0%, #3a1a5e 60%, #2a1245 100%); }
.au-side h2 span { background: linear-gradient(135deg, #f7c6e3, #ffffff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.au-side__list li::before { background: rgba(255, 255, 255, .18); color: #fff; }
.au-main { background: linear-gradient(180deg, #fff 0%, #fbf8fe 100%); }
.au-step span { background: var(--lp-grad); color: #fff; }
.au-plan:has(input:checked) { border-color: transparent; background: linear-gradient(#fdf9ff, #fdf9ff) padding-box, var(--lp-grad) border-box; }
.au-plan:has(input:checked) .au-plan__price { color: var(--lp-brand); }
.au-input input:focus, .au-input select:focus { border-color: #9a6fc9; box-shadow: 0 0 0 4px rgba(91, 46, 142, .12); }
.au-alt a, .au-label-row a { color: var(--lp-brand); }
.au-alert--info { background: var(--lp-tint); color: var(--lp-brand); }

/* phone with country picker */
.au-phone .iti { width: 100%; }
.au-phone .iti__selected-flag { border-radius: 12px 0 0 12px; padding: 0 10px 0 12px; }
.au-phone .iti__selected-dial-code { font-weight: 600; color: var(--lp-ink); }
.au-phone .rb-phone-err { color: #d63a3f; font-weight: 500; }

/* legal pages */
.au-legal { color: var(--lp-text); font-size: 15px; }
.au-legal h3 { font-size: 17px; margin: 22px 0 8px; color: var(--lp-ink); }
.au-legal ul { padding-inline-start: 20px; margin: 0; }
.au-legal li { margin-bottom: 6px; }
.au-legal a { color: var(--lp-brand); font-weight: 600; }
