/* Sign-up and sign-in (web/auth.html). A photo panel with what Voizual does on the left, the form on the right;
   on a phone only the form. Colours, fonts and the logo come from brand.css. */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--vz-bg); color: var(--vz-text); font-family: var(--vz-font); -webkit-font-smoothing: antialiased; }
a { color: var(--vz-brand-bright); }
a:focus-visible, button:focus-visible { outline: 3px solid #a7a2ff; outline-offset: 3px; }

.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100dvh; }

/* ---- the photo panel ---- */
.auth-hero { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px clamp(32px, 5vw, 72px); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(5, 8, 15, .55), rgba(5, 8, 15, .25) 35%, rgba(5, 8, 15, .9)),
              linear-gradient(90deg, rgba(5, 8, 15, .85), rgba(5, 8, 15, .35)),
              url('/static/brand/voizual-office.webp') center / cover; }
.auth-hero::after { content: ''; position: absolute; inset: auto -20% -30% -20%; height: 60%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(101, 91, 255, .35), transparent); }
.auth-hero-logo { --logo-h: 36px; }
.auth-hero-copy { max-width: 600px; }
.auth-hero-title { margin: 0; font-size: clamp(30px, 2.9vw, 44px); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; }
.auth-hero-title em { font-style: normal; background: linear-gradient(100deg, #92b7ff, #b8a0ff 55%, #83a8ff);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero-lede { margin: 18px 0 28px; font-size: 17px; line-height: 1.55; color: var(--vz-text-2); max-width: 44ch; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth-points li { display: flex; align-items: center; gap: 14px; font-size: 15px; color: #e3e6f2; }
.auth-points i { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--vz-brand-line); background: rgba(101, 91, 255, .14); color: #c9c6ff; }
.auth-points svg, .auth-icon svg, .auth-reveal svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-hero-foot { margin: 0; font-size: 12px; color: var(--vz-muted); }

/* ---- the form panel ---- */
.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; min-height: 100dvh;
  padding: 48px 24px 32px; background: radial-gradient(700px 400px at 50% 0%, #1b1a45 0, rgba(27, 26, 69, 0) 70%), var(--vz-bg); }
.auth-mobile-logo { display: none; --logo-h: 32px; margin-bottom: 4px; }
.auth-card { width: min(420px, 100%); }
.auth-view { display: flex; flex-direction: column; gap: 16px; }
.auth-view[hidden] { display: none; }
.auth-card h1 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.auth-sub { margin: -6px 0 6px; font-size: 15.5px; line-height: 1.55; color: var(--vz-text-2); }
.auth-sub strong { color: var(--vz-text); font-weight: 600; overflow-wrap: anywhere; }
.auth-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--vz-muted); }

.auth-google { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 18px;
  border-radius: 999px; background: #fff; color: #1f1f1f; font-size: 15px; font-weight: 600; text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: background .15s, box-shadow .15s; }
.auth-google:hover { background: #f1f3f8; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.auth-google svg { width: 20px; height: 20px; flex: none; }
.auth-google[hidden], .auth-or[hidden] { display: none; }
.auth-or { display: flex; align-items: center; gap: 14px; color: var(--vz-faint); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--vz-line); }

.auth-field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; color: var(--vz-text-2); }
.auth-field[hidden] { display: none; }
.auth-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.auth-label-row a { font-weight: 500; font-size: 13.5px; text-decoration: none; }
.auth-label-row a:hover { text-decoration: underline; }
.auth-field input { width: 100%; height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--vz-line);
  background: var(--vz-sunken); color: var(--vz-text); font: inherit; font-size: 16px; font-weight: 400;
  transition: border-color .15s, box-shadow .15s; }
.auth-field input::placeholder { color: var(--vz-faint); }
.auth-field input:hover { border-color: #33405c; }
.auth-field input:focus { outline: none; border-color: var(--vz-brand-bright); box-shadow: 0 0 0 3px rgba(101, 91, 255, .28); }
.auth-field input[aria-invalid="true"] { border-color: var(--vz-danger); }
.auth-password { position: relative; display: block; }
.auth-password input { padding-right: 52px; }
.auth-reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--vz-muted); cursor: pointer; }
.auth-reveal:hover, .auth-reveal[aria-pressed="true"] { color: var(--vz-text); background: var(--vz-hover); }
.auth-hint { font-size: 13px; font-weight: 400; color: var(--vz-muted); }
.auth-hint[hidden] { display: none; }
/* the account name: the site's address in front of the input, both inside one field */
.auth-account { display: flex; align-items: center; height: 50px; border-radius: 12px; border: 1px solid var(--vz-line);
  background: var(--vz-sunken); cursor: text; transition: border-color .15s, box-shadow .15s; }
.auth-account:hover { border-color: #33405c; }
.auth-account:focus-within { border-color: var(--vz-brand-bright); box-shadow: 0 0 0 3px rgba(101, 91, 255, .28); }
.auth-account:has(input[aria-invalid="true"]) { border-color: var(--vz-danger); }
.auth-account-host { flex: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding-left: 16px; font-size: 16px; font-weight: 400; color: var(--vz-faint); }
.auth-field .auth-account input { flex: 1; min-width: 0; height: 48px; padding: 0 16px 0 1px; border: 0; background: none; }
.auth-field .auth-account input:focus { box-shadow: none; }
.auth-hint.is-ok { color: var(--vz-ok); }
.auth-hint.is-bad { color: var(--vz-danger); }
.auth-hint button { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--vz-brand-bright);
  cursor: pointer; text-decoration: underline; }
.auth-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.auth-error { margin: 0; padding: 11px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45;
  color: #ffd1d6; background: rgba(255, 90, 106, .12); border: 1px solid rgba(255, 90, 106, .35); }
.auth-error[hidden], .auth-status[hidden] { display: none; }
.auth-error button { margin-left: 4px; padding: 0; border: 0; background: none; color: #fff; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.auth-status { margin: 0; font-size: 14px; color: #b8ffd9; }

.auth-submit, .auth-secondary { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin-top: 4px;
  border: 0; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: filter .15s, background .15s, opacity .15s; }
.auth-submit { background: var(--vz-brand-fill); color: #fff; box-shadow: var(--vz-brand-lift); }
.auth-submit:hover { filter: brightness(1.12); }
.auth-secondary { background: transparent; color: var(--vz-text); border: 1px solid var(--vz-line); }
.auth-secondary:hover { background: var(--vz-hover); }
.auth-submit:disabled, .auth-secondary:disabled { opacity: .6; cursor: progress; filter: none; }
.auth-switch { margin: 4px 0 0; text-align: center; font-size: 15px; color: var(--vz-muted); }
.auth-switch a { font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

.auth-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #c9c6ff;
  background: rgba(101, 91, 255, .16); border: 1px solid var(--vz-brand-line); }
.auth-icon svg { width: 24px; height: 24px; }
.auth-icon.ok { color: #9ff5c8; background: rgba(34, 233, 133, .12); border-color: rgba(34, 233, 133, .35); }
.auth-icon.bad { color: #ffb3bb; background: rgba(255, 90, 106, .12); border-color: rgba(255, 90, 106, .35); }
.auth-spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(201, 198, 255, .3); border-top-color: #c9c6ff; animation: auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 13.5px; }
.auth-foot a { color: var(--vz-muted); text-decoration: none; }
.auth-foot a:hover, .auth-foot .vz-cookie-link:hover { color: var(--vz-text); }
.auth-foot .vz-cookie-link { padding: 0; border: 0; background: none; font: inherit; color: var(--vz-muted); cursor: pointer; }
.auth-foot .vz-cookie-link[hidden] { display: none; }

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-mobile-logo { display: inline-flex; }
  .auth-panel { justify-content: flex-start; padding-top: 40px; }
}
@media (max-width: 480px) {
  .auth-panel { padding: 32px 20px 28px; gap: 24px; }
  .auth-card h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .auth-spinner { animation-duration: 2.4s; } }
