/* =========================================================
   Zoie — sign in / sign up (login.html, after us.zoie.ai/login).
   Like the app: no site header or footer. Left: logo, the form
   (two views, main.js section 19) and a small footer. Right: the
   app's dashboard slides, cross-fading. Phones and tablets get
   the form only.
   ========================================================= */

.au { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100svh; color: #fff; background: #030509; }

/* ---------- left: the form ---------- */
.au-main { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding: 28px 40px 22px; overflow: hidden; }
.au-glow {   /* a soft light, not the home page's lit rim: its line ran through the heading */
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 42% at 50% 0%, rgba(174, 188, 246, .1), transparent 70%), radial-gradient(70% 50% at 0% 100%, rgba(142, 160, 255, .06), transparent 70%);
}
/* "Get started with [the Zoie logo]": a span (not an img) so each language's translation can place it */
.au-zoie {
  display: inline-block; width: calc(.86em * 111 / 32); height: .86em; margin-inline-start: .08em; vertical-align: -.06em;
  background: url("assets/icons/logo-white.svg") center / contain no-repeat;
}
.au-center { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 22px 0; }
.au-card { width: 100%; max-width: 420px; }
.au-view[hidden] { display: none; }
.au-title { font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -.02em; text-align: center; }
.au-sub { margin-top: 8px; font-size: 15px; line-height: 22px; text-align: center; color: rgba(226, 230, 240, .62); }

/* fields */
.au-form { display: grid; gap: 14px; margin-top: 24px; }
.au-form[hidden] { display: none; }
.au-field { display: grid; gap: 7px; }
.au-label { font-size: 13.5px; line-height: 18px; font-weight: 500; color: rgba(226, 230, 240, .86); }
.au-input {
  width: 100%; height: 46px; padding: 0 16px; border: 0; border-radius: 12px; outline: none;
  font: inherit; font-size: 15px; color: #fff; background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: background-color .2s, box-shadow .2s;
}
.au-input::placeholder { color: rgba(226, 230, 240, .36); }
.au-input:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.au-input:focus { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1.5px #aebcf6, 0 0 0 4px rgba(174, 188, 246, .16); }
.au-input:-webkit-autofill,
.au-input:-webkit-autofill:hover,
.au-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff; caret-color: #fff;
  -webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 0 0 100px #15171d;
}
.au-field.is-invalid .au-input { box-shadow: inset 0 0 0 1.5px rgba(248, 113, 113, .85); }
.au-field.is-invalid .au-input:focus { box-shadow: inset 0 0 0 1.5px rgba(248, 113, 113, .85), 0 0 0 4px rgba(248, 113, 113, .16); }
.au-field.is-invalid .au-input:-webkit-autofill,
.au-field.is-invalid .au-input:-webkit-autofill:hover,
.au-field.is-invalid .au-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff; caret-color: #fff;
  -webkit-box-shadow: inset 0 0 0 1.5px rgba(248, 113, 113, .85), inset 0 0 0 100px #15171d;
}
.au-err, .au-api { display: none; font-size: 12.5px; line-height: 17px; color: #fca5a5; }
.au-api.is-on { display: block; margin: 0; }
.au-field.is-invalid .au-err { display: block; }
[dir="rtl"] .au-input[type="tel"], [dir="rtl"] .au-input[type="email"] { direction: ltr; text-align: right; }

/* password: the eye button sits inside the field */
.au-pass { position: relative; }
.au-pass .au-input { padding-inline-end: 48px; }
.au-eye {
  position: absolute; top: 5px; inset-inline-end: 5px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  color: rgba(226, 230, 240, .55); transition: color .2s, background-color .2s;
}
.au-eye:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.au-eye-off, .au-eye[aria-pressed="true"] .au-eye-on { display: none; }
.au-eye[aria-pressed="true"] .au-eye-off { display: block; }

/* remember me + forgot password */
.au-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; line-height: 18px; }
.au-check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; color: rgba(226, 230, 240, .75); }
.au-check input { position: absolute; opacity: 0; pointer-events: none; }
.au-box {
  flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); transition: background-color .2s, box-shadow .2s;
}
.au-box::after {
  content: ""; width: 9px; height: 5px; margin-top: -2px; border: solid #0b0c0e; border-width: 0 0 2px 2px;
  transform: rotate(-45deg); opacity: 0; transition: opacity .2s;
}
.au-check input:checked + .au-box { background: #aebcf6; box-shadow: none; }
.au-check input:checked + .au-box::after { opacity: 1; }
.au-check input:focus-visible + .au-box { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3), 0 0 0 3px rgba(174, 188, 246, .35); }
.au-link, .au-switch a, .au-terms a { color: #aebcf6; text-underline-offset: 3px; transition: color .2s; }
.au-link:hover, .au-switch a:hover, .au-terms a:hover { color: #d3dbfb; text-decoration: underline; }

/* the main button: white, like "Try Zoie Free" */
.au-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; margin-top: 4px; border-radius: 99px;
  font-size: 15px; font-weight: 600; color: #0b0c0e; background: #fff; transition: background-color .2s, gap .3s var(--ease-out), opacity .2s;
}
.au-submit:hover { background: #e9ebef; gap: 13px; }
.au-submit:focus-visible { outline: 2px solid #aebcf6; outline-offset: 3px; }
.au-submit.is-busy { opacity: .6; pointer-events: none; }
.au-submit:disabled { opacity: .4; cursor: not-allowed; }
.au-submit:disabled:hover { background: #fff; gap: 10px; }
[dir="rtl"] .au-submit svg { scale: -1 1; }
.au-terms { margin-top: -2px; font-size: 13px; line-height: 19px; text-align: center; color: rgba(226, 230, 240, .55); }
.au-switch { margin-top: 18px; font-size: 14px; line-height: 20px; text-align: center; color: rgba(226, 230, 240, .75); }

/* or + Google / Apple / Facebook */
.au-or { display: flex; align-items: center; gap: 14px; margin: 20px 0 16px; font-size: 13px; color: rgba(226, 230, 240, .42); }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .1); }
.au-social { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }   /* Google, Apple, Facebook in one row */
.au-soc {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 10px; border-radius: 12px;
  font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background-color .2s, box-shadow .2s;
}
.au-soc:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.au-soc:focus-visible { outline: 2px solid #aebcf6; outline-offset: 2px; }
.au-soc svg, .au-soc img { flex: none; }
.au-soc[aria-disabled="true"] { opacity: .38; filter: grayscale(1); pointer-events: none; }   /* disabled for now: greyed out, not clickable */


/* data region in both forms, US & Global or Egypt (was the separate region.html step) */
.au-regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }   /* US and Canada / Global / Egypt (user's request, 2026-10-28; was US & Global / Egypt with a line under each) */
.au-reg {   /* a small tile: the flag over the name, centred */
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 12px 8px; border-radius: 12px; cursor: pointer; text-align: center;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: background-color .2s, box-shadow .2s;
}
.au-reg:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.au-reg input { position: absolute; opacity: 0; pointer-events: none; }
.au-reg:has(input:checked) { background: rgba(174, 188, 246, .08); box-shadow: inset 0 0 0 1.5px #aebcf6; }
.au-reg:has(input:focus-visible) { box-shadow: inset 0 0 0 1.5px #aebcf6, 0 0 0 4px rgba(174, 188, 246, .16); }
.au-reg-flag { flex: none; font-size: 20px; line-height: 22px; letter-spacing: 2px; }
.au-reg-text { display: grid; gap: 2px; min-width: 0; }
.au-reg-name { font-size: 13.5px; line-height: 18px; font-weight: 600; color: #fff; }
.au-reg-desc { font-size: 12px; line-height: 16px; color: rgba(226, 230, 240, .55); }
.au-hint { display: flex; align-items: center; gap: 7px; margin-top: 2px; font-size: 12.5px; line-height: 17px; color: rgba(226, 230, 240, .5); }
.au-hint svg { flex: none; }
.au-reg-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }   /* "Select region" with the data note at its right (wraps under it if there's no room) */
.au-reg-head .au-hint { margin-top: 0; align-self: center; }

/* forgot password: email -> 6-digit code -> new password (no "or" / social buttons on these steps) */
.au-card.is-recover > :is(.au-or, .au-social) { display: none; }
.au-back {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; margin-bottom: 22px; padding: 0 14px 0 11px; border-radius: 99px;
  font-size: 13.5px; font-weight: 500; color: rgba(226, 230, 240, .8); background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: color .2s, background-color .2s, box-shadow .2s;
}
.au-back:hover { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.au-back:focus-visible { outline: 2px solid #aebcf6; outline-offset: 2px; }
[dir="rtl"] .au-back svg { scale: -1 1; }
.au-to { margin-top: 2px; font-size: 15px; line-height: 22px; font-weight: 600; text-align: center; color: #fff; direction: ltr; overflow-wrap: anywhere; }
.au-otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; direction: ltr; }   /* codes read left to right in every language */
.au-digit { height: 56px; padding: 0; text-align: center; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; caret-color: #aebcf6; }
.au-resend { font-size: 13.5px; line-height: 18px; text-align: center; color: rgba(226, 230, 240, .6); }
.au-resend button { font-weight: 500; color: #aebcf6; text-underline-offset: 3px; transition: color .2s; }
.au-resend button:hover { color: #d3dbfb; text-decoration: underline; }
.au-resend button:focus-visible { outline: 2px solid #aebcf6; outline-offset: 2px; border-radius: 4px; }
.au-wait { color: rgba(226, 230, 240, .45); font-variant-numeric: tabular-nums; }
/* back on "Sign in" after a reset */
.au-done {
  display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 12px;
  font-size: 13.5px; line-height: 19px; color: #bbf7d0; background: rgba(34, 197, 94, .1); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .22);
}
.au-done[hidden] { display: none; }
.au-done svg { flex: none; }

/* small footer: copyright, legal links, language */
.au-foot { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 13px; line-height: 18px; color: rgba(226, 230, 240, .45); }
.au-foot-links { display: flex; gap: 16px; }
.au-foot-links a { color: rgba(226, 230, 240, .65); transition: color .2s; }
.au-foot-links a:hover { color: #fff; }
.au-foot .lang { margin-inline-start: auto; }
.au-foot .lang-pill { display: flex; }
.au-foot .lang-menu { top: auto; bottom: calc(100% + 10px); animation-name: lang-up; }   /* opens upwards from the bottom of the page */
@keyframes lang-up { from { opacity: 0; transform: translateY(6px); } }

/* ---------- right: the app's dashboard slides ---------- */
.au-show { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 12px 12px 12px 0; }
.au-slides {
  position: relative; height: 100%; overflow: hidden; border-radius: 28px;
  background: radial-gradient(90% 55% at 15% 0%, rgba(174, 188, 246, .22), transparent 70%), linear-gradient(180deg, #1b1f2b 0%, #10131b 70%, #0c0e14 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.au-slide { position: absolute; inset: 0; display: flex; flex-direction: column; margin: 0; padding-top: 72px; opacity: 0; transition: opacity .9s var(--ease-out); }
.au-slide.is-on { opacity: 1; }
.au-slide-text { max-width: 672px; padding: 0 56px; transform: translateY(14px); transition: transform 1s var(--ease-out); }
.au-slide-title { font-size: 30px; line-height: 38px; font-weight: 700; letter-spacing: -.02em; }
.au-slide-sub { margin-top: 10px; font-size: 15.5px; line-height: 24px; color: rgba(226, 230, 240, .66); }
/* the screenshot runs off the right and bottom edges, as in the app */
.au-slide-shot { flex: 1; min-height: 0; margin: 44px 0 0 56px; direction: ltr; overflow: hidden; border-top-left-radius: 22px; box-shadow: -20px 30px 70px -30px rgba(0, 0, 0, .7); transform: translateY(26px); transition: transform 1.2s var(--ease-out); }
.au-slide-shot img { display: block; width: max(118%, 860px); max-width: none; height: auto; }
.au-slide.is-on .au-slide-text, .au-slide.is-on .au-slide-shot { transform: none; }
.au-dots { position: absolute; z-index: 2; top: 30px; inset-inline-end: 32px; display: flex; gap: 6px; }
.au-dot { width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .3); transition: width .35s var(--ease-out), background-color .25s; }
.au-dot:hover { background: rgba(255, 255, 255, .55); }
.au-dot[aria-current="true"] { width: 22px; background: #fff; }
.au-dot:focus-visible { outline: 2px solid #aebcf6; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .au-slide, .au-slide-text, .au-slide-shot { transition: none; transform: none; }
}

@media (max-width: 1199px) {
  .au-main { padding: 26px 32px 20px; }
  .au-slide { padding-top: 52px; }
  .au-slide-text { padding: 0 40px; }
  .au-slide-shot { margin-left: 40px; }
  .au-slide-title { font-size: 26px; line-height: 33px; }
  .au-slide-sub { font-size: 14.5px; line-height: 22px; }
}

/* tablets and phones: the form only, like the app */
@media (max-width: 960px) {
  .au { grid-template-columns: minmax(0, 1fr); }
  .au-show { display: none; }
}
@media (max-width: 640px) {
  .au-main { padding: 20px 16px 18px; }
  .au-center { padding: 28px 0; }
  .au-title { font-size: 27px; line-height: 34px; }
  .au-sub { font-size: 14px; line-height: 20px; }
  .au-input { font-size: 16px; }   /* 16px+ so iPhones don't zoom in on focus */
  .au-social { gap: 8px; }
  .au-soc { gap: 7px; padding: 0 6px; font-size: 13.5px; }
  .au-foot { justify-content: center; text-align: center; }
  .au-foot .lang { margin-inline-start: 0; }
}
