/* Sign-in / sign-up: picture panel on the left, form on the right. */
:root {
  --au-ink: #1F1D2B; --au-ink-2: #3F3D56; --au-muted: #6B6880; --au-line: #E7E5EF; --au-soft: #F5F4FA;
  --au-primary: #6D28D9; --au-primary-2: #7C3AED; --au-primary-50: #F3EEFF; --au-danger: #D92D20;
  --au-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body.au-body { margin: 0; background: #F4F4F7; font-family: var(--au-font); color: var(--au-ink); -webkit-font-smoothing: antialiased; }
.au-shell { display: grid; grid-template-columns: minmax(360px, 32%) 1fr; gap: 16px; min-height: 100vh; padding: 16px; }

/* ---- Picture panel ---- */
.au-panel { position: sticky; top: 16px; height: calc(100vh - 32px); border-radius: 24px; overflow: hidden; background: #1F1D2B; color: #fff; isolation: isolate; }
.au-slide { position: absolute; inset: 0; background-size: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 7s ease; z-index: 0; }
.au-slide.is-active { opacity: 1; transform: scale(1); }
.au-panel-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15, 11, 30, .15) 0%, rgba(15, 11, 30, 0) 35%, rgba(15, 11, 30, .55) 68%, rgba(15, 11, 30, .92) 100%); }
.au-logo-tab { position: absolute; z-index: 3; top: 0; left: 0; display: flex; align-items: center; height: 76px; padding: 0 34px 0 22px; background: #F4F4F7; border-bottom-right-radius: 26px; }
.au-logo-tab::before, .au-logo-tab::after { content: ''; position: absolute; width: 26px; height: 26px; background: radial-gradient(circle at 100% 100%, transparent 25px, #F4F4F7 26px); }
.au-logo-tab::before { left: 100%; top: 0; }
.au-logo-tab::after { top: 100%; left: 0; }
.au-logo-tab img { height: 34px; width: auto; display: block; }
.au-progress { position: absolute; z-index: 3; top: 34px; right: 28px; left: calc(34px + 170px); display: flex; gap: 6px; }
.au-progress span { flex: 1; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.au-progress span i { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; }
.au-progress span.is-done i { width: 100%; }
.au-progress span.is-active i { animation: au-fill 6s linear forwards; }
@keyframes au-fill { from { width: 0; } to { width: 100%; } }
.au-headlines { position: absolute; z-index: 3; left: 34px; right: 34px; bottom: 82px; min-height: 140px; }
.au-headline { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.12; font-weight: 800; letter-spacing: -.6px; color: #fff;
  opacity: 0; transform: translateY(46px); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.au-headline.is-active { opacity: 1; transform: none; transition-delay: .25s; }
.au-panel-foot { position: absolute; z-index: 3; left: 34px; right: 34px; bottom: 30px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.au-panel-foot a { color: rgba(255, 255, 255, .78); text-decoration: none; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .3); }
.au-panel-foot a:hover { color: #fff; }

/* ---- Form side ---- */
.au-main { background: #fff; border-radius: 24px; display: flex; flex-direction: column; min-width: 0; }
.au-top { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--au-line); min-height: 80px; }
.au-mobile-logo { display: none; margin-right: auto; }
.au-mobile-logo img { height: 30px; }
.au-lang { position: relative; }
.au-lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 14px; background: var(--au-soft); font-weight: 600; font-size: 14px; user-select: none; }
.au-lang summary::-webkit-details-marker { display: none; }
.au-lang summary .fi { border-radius: 3px; }
.au-lang ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none; min-width: 190px; background: #fff; border: 1px solid var(--au-line); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(31, 29, 43, .3); }
.au-lang li a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--au-ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.au-lang li a:hover, .au-lang li a[aria-current] { background: var(--au-primary-50); color: var(--au-primary); }

.au-form-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 420px; margin: 0 auto; padding: 48px 20px; }
.au-form-wrap.wide, .au-wide .au-form-wrap { max-width: 480px; }
.au-title { font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin: 0 0 6px; }
.au-sub { color: var(--au-muted); margin: 0 0 28px; font-size: 15px; }
.au-social { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; border: 1px solid var(--au-line); border-radius: 12px; background: #fff; color: var(--au-ink); font-weight: 700; font-size: 15px; text-decoration: none; margin-bottom: 10px; transition: background .15s, border-color .15s; }
.au-social:hover { background: var(--au-soft); color: var(--au-ink); }
.au-social img { height: 20px; }
.au-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0 22px; color: var(--au-muted); font-size: 13px; font-weight: 600; }
.au-divider::before, .au-divider::after { content: ''; flex: 1; height: 1px; background: var(--au-line); }
.au-field { margin-bottom: 18px; }
.au-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--au-ink); }
.au-input-wrap { position: relative; }
.au-input { display: block; width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid var(--au-line); border-radius: 12px; font: 500 15px var(--au-font); color: var(--au-ink); background: #fff; outline: 0; transition: border-color .15s, box-shadow .15s; }
.au-input::placeholder { color: #A9A6B8; }
.au-input:focus { border-color: var(--au-primary-2); box-shadow: 0 0 0 4px rgba(124, 58, 237, .14); }
.au-input.is-invalid { border-color: var(--au-danger); }
.au-input-wrap .au-input { padding-right: 52px; }
.au-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; background: transparent; border-radius: 10px; color: var(--au-muted); cursor: pointer; font-size: 17px; }
.au-eye:hover { background: var(--au-soft); color: var(--au-ink); }
.au-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.au-error { display: block; color: var(--au-danger); font-size: 13px; font-weight: 600; margin-top: 6px; }
.au-link { color: var(--au-primary); font-weight: 700; text-decoration: none; }
.au-link:hover { text-decoration: underline; color: var(--au-primary); }
.au-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: -4px 0 22px; font-size: 14px; }
.au-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--au-ink-2); cursor: pointer; line-height: 1.45; }
.au-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--au-primary); flex: none; }
.au-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; border: 0; border-radius: 12px; background: var(--au-primary); color: #fff; font: 700 16px var(--au-font); cursor: pointer; transition: background .15s, opacity .15s; }
.au-btn:hover { background: #5B21B6; }
.au-btn:disabled, .au-btn[aria-disabled="true"] { background: #ECEBF2; color: #8A879B; cursor: not-allowed; }
.au-foot-note { text-align: center; color: var(--au-muted); font-size: 14.5px; margin-top: 28px; }
.au-alert { padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.au-alert-danger { background: #FEECEC; color: var(--au-danger); }
.au-alert-success { background: #E7F8EE; color: #12805C; }
.au-alert-warning { background: #FEF3C7; color: #92400E; }
.au-hint { color: var(--au-muted); font-size: 13px; margin-top: 8px; }
.au-meter { display: flex; gap: 6px; margin-top: 10px; }
.au-meter div { flex: 1; height: 5px; border-radius: 999px; background: var(--au-line); }
.au-meter div.active { background: #16A34A; }
.au-account-type { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.au-account-type label { cursor: pointer; }
.au-account-type input { position: absolute; opacity: 0; }
.au-account-type span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--au-line); border-radius: 12px; font-weight: 700; font-size: 14.5px; }
.au-account-type small { font-weight: 600; color: var(--au-muted); font-size: 12px; }
.au-account-type input:checked + span { border-color: var(--au-primary); background: var(--au-primary-50); color: var(--au-primary); }
.au-account-type input:focus-visible + span { box-shadow: 0 0 0 4px rgba(124, 58, 237, .2); }

/* intl-tel-input inside our field */
.au-field .iti { width: 100%; display: block; }
.au-field .iti input.au-input { padding-left: 52px; }

/* ---- Responsive ---- */
@media (max-width: 1100px) { .au-shell { grid-template-columns: 340px 1fr; } .au-progress { left: 210px; } }
@media (max-width: 900px) {
  .au-shell { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .au-panel { display: none; }
  .au-main { border-radius: 0; min-height: 100vh; }
  .au-mobile-logo { display: block; }
  .au-top { min-height: 68px; padding: 12px 16px; }
  .au-form-wrap { justify-content: flex-start; padding: 32px 16px 40px; }
}
@media (max-width: 420px) { .au-row, .au-account-type { grid-template-columns: 1fr; } .au-lang summary { padding: 10px 12px; } }
@media (prefers-reduced-motion: reduce) {
  .au-slide, .au-headline { transition: opacity .3s ease; transform: none !important; }
}

/* After sign-up: "Check your inbox" */
.au-done-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: var(--au-primary-50); color: var(--au-primary); margin-bottom: 18px; }
.au-tips { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--au-ink-2); }
.au-tips li { display: flex; gap: 10px; align-items: flex-start; }
.au-tips i { color: #16A34A; margin-top: 3px; }
