/* DiesRent — authentication pages (split screen). Built on base.css tokens. */
.au-body { background: var(--p-bg); }
.au { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.au-main { display: flex; flex-direction: column; min-width: 0; padding: clamp(20px, 3vw, 32px) clamp(20px, 5vw, 64px); }
.au-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.au-back { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--p-muted); padding: 8px 10px; border-radius: var(--p-r); transition: background .2s, color .2s; }
.au-back:hover { color: var(--p-ink); background: var(--p-soft); }
/* day/night switch (App\Services\DayNight) next to the back link */
.au-top .au-back { margin-inline-start: auto; }
.au-theme { margin-inline-start: -6px; }
.au-center { flex: 1; display: grid; place-items: center; padding-block: clamp(28px, 6vh, 64px); }
.au-form { width: 100%; max-width: 430px; animation: auIn .5s var(--p-ease) both; }
.au-form-wide { max-width: 480px; }
.au-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--p-primary) 20%, var(--p-line)); border-radius: var(--p-r-xs); background: linear-gradient(180deg, var(--p-surface), color-mix(in srgb, var(--p-primary-50) 70%, var(--p-surface))); color: var(--p-primary-600); font: 600 max(11px, .68rem)/1.1 var(--p-font-mono); letter-spacing: .12em; text-transform: uppercase; box-shadow: var(--p-sh-xs); }
.au-kicker .i { font-size: 1.15em; }
.au-form h1 { font-size: clamp(1.75rem, 1.3rem + 1.3vw, 2.3rem); letter-spacing: -.035em; }
.au-sub { margin-top: 10px; color: var(--p-muted); font-size: 1rem; line-height: 1.6; }
.au-fields { display: grid; gap: 16px; margin-top: 26px; }
.au-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
/* a field next to one with a hint line must not stretch (its label/input rows grew and the input slid down) */
.au-row > .p-field { align-content: start; }
.au-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.au-opt { font-weight: 500; color: var(--p-muted); font-size: .78rem; }
.au-pass { position: relative; }
.au-pass .p-input { padding-right: 50px; }
.au-eye { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: var(--p-r); display: grid; place-items: center; color: var(--p-muted); }
.au-eye:hover { background: var(--p-soft); color: var(--p-ink); }
.au-eye .i { font-size: 1.1rem; }
.au-eye .i-off, .au-eye.is-on .i-on { display: none; }
.au-eye.is-on .i-off { display: block; }
.au-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.au-meter i { height: 3px; border-radius: 0; background: var(--p-line); transition: background .25s; }
.au-meter[data-score="1"] i:nth-child(-n+1) { background: var(--p-danger); }
.au-meter[data-score="2"] i:nth-child(-n+2) { background: var(--p-amber); }
.au-meter[data-score="3"] i:nth-child(-n+3) { background: #22c55e; }
.au-meter[data-score="4"] i { background: var(--p-success); }
.au-meter-label { display: block; margin-top: 6px; font-size: .76rem; color: var(--p-muted); min-height: 1.2em; }
.au-split { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .88rem; }
.au-link { color: var(--p-primary); font-weight: 650; text-decoration-thickness: 1px; }
.au-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.au-legal { font-size: .84rem; line-height: 1.5; color: var(--p-text); }
.au-legal a { color: var(--p-primary); font-weight: 600; }
.au-submit { margin-top: 6px; }
.au-alt { margin-top: 24px; text-align: center; font-size: .92rem; color: var(--p-muted); }
.au-trust { display: flex; gap: 10px 18px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--p-line); color: var(--p-muted); font-size: .8rem; }
.au-trust span { display: inline-flex; gap: 6px; align-items: center; }
.au-trust .i { color: var(--p-success); }
.au-foot { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; font-size: .78rem; color: var(--p-muted); }
/* coming from the cart: a first-time buyer sees the "create account" way out right under the login button */
.au-new { display: grid; gap: 10px; margin-top: 22px; padding: 16px; border: 1px dashed var(--p-line-2); border-radius: var(--p-r-lg); background: var(--p-soft); text-align: center; }
.au-new p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--p-text); }
.au-new b { color: var(--p-ink); }
.au-foot a:hover { color: var(--p-ink); }
.au-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.au-note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-top: 20px; border-radius: var(--p-r); background: linear-gradient(120deg, #eef0ff, #ecfeff); border: 1px solid #dfe3ff; font-size: .87rem; color: #312e81; }
.au-note .i { flex: none; margin-top: 2px; font-size: 1.05rem; color: var(--p-primary); }
.au-alerts { display: grid; gap: 10px; margin-top: 20px; }
.au-sent { text-align: center; }
.au-sent-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: var(--p-r-xl); display: grid; place-items: center; background: var(--p-grad); color: #fff; box-shadow: 0 18px 40px -16px rgb(79 70 229 / .7); }
.au-sent-icon .i { font-size: 2rem; }
.p-input-group > .p-input.is-invalid + .i, .p-input.is-invalid { border-color: var(--p-danger); }
.au-err { font-size: .8rem; color: var(--p-danger); }

/* visual side */
.au-aside { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: center; gap: 34px; padding: clamp(36px, 5vw, 76px); background: #070b1a; color: #fff; }
.au-aside h2 { color: #fff; font-size: clamp(1.7rem, 1.1rem + 1.5vw, 2.5rem); line-height: 1.12; max-width: 560px; }
.au-aside-lead { color: rgb(255 255 255 / .68); font-size: 1.02rem; max-width: 520px; margin-top: 14px; }
.au-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; animation: auFloat 16s ease-in-out infinite; pointer-events: none; }
.au-orb-1 { width: 460px; height: 460px; background: #4f46e5; top: -160px; right: -120px; }
.au-orb-2 { width: 380px; height: 380px; background: #06b6d4; bottom: -170px; left: -90px; animation-delay: -6s; opacity: .4; }
.au-orb-3 { width: 260px; height: 260px; background: #7c3aed; top: 42%; left: 46%; animation-delay: -10s; opacity: .32; }
.au-gridbg { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 25%, transparent 72%); mask-image: radial-gradient(ellipse at 60% 40%, #000 25%, transparent 72%); }
.au-stage { position: relative; max-width: 560px; width: 100%; }
.au-mock { position: relative; border-radius: var(--p-r-xl); overflow: hidden; background: #fff; color: var(--p-ink); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .08); transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); transform-origin: left center; animation: auTilt 9s ease-in-out infinite; }
.au-mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f3f4f8; border-bottom: 1px solid #e7e9f1; }
.au-mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #fca5a5; }
.au-mock-bar i:nth-child(2) { background: #fcd34d; }
.au-mock-bar i:nth-child(3) { background: #86efac; }
.au-mock-bar span { margin-inline: auto; padding: 3px 14px; border-radius: var(--p-r-sm); background: #fff; font-size: max(11px, .68rem); color: var(--p-muted); border: 1px solid #e7e9f1; }
.au-mock-nav { display: flex; align-items: center; gap: 12px; padding: 12px 18px; font-size: .7rem; font-weight: 700; }
.au-mock-nav b { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; white-space: nowrap; }
.au-mock-nav b span { width: 18px; height: 18px; border-radius: var(--p-r-sm); background: var(--p-grad); }
.au-mock-nav em { margin-inline-start: auto; display: flex; gap: 10px; font-style: normal; color: var(--p-muted); white-space: nowrap; }
.au-mock-nav strong { white-space: nowrap; }
.au-mock-nav strong { padding: 5px 10px; border-radius: var(--p-r-sm); background: var(--p-brand); color: #fff; font-size: max(11px, .66rem); }
.au-mock-hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10px; padding: 18px 18px 34px; background: linear-gradient(135deg, #0f172a, #1e1b4b 60%, #0e7490); color: #fff; }
.au-mock-hero h3 { color: #fff; font-size: 1.05rem; line-height: 1.15; }
.au-mock-hero p { font-size: max(11px, .66rem); color: rgb(255 255 255 / .7); margin-top: 6px; }
.au-mock-hero img { width: 100%; filter: drop-shadow(0 14px 18px rgb(0 0 0 / .45)); }
.au-mock-book { position: relative; margin: -20px 16px 0; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 6px; padding: 8px; border-radius: var(--p-r); background: #fff; box-shadow: 0 10px 24px -12px rgb(15 23 42 / .35); font-size: max(11px, .6rem); }
.au-mock-book span { padding: 6px 8px; border-radius: var(--p-r-sm); background: #f3f4f8; color: var(--p-muted); }
.au-mock-book strong { padding: 6px 12px; border-radius: var(--p-r-sm); background: var(--p-grad); color: #fff; }
.au-mock-cars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 16px 16px; }
.au-mock-cars div { padding: 8px; border-radius: var(--p-r); border: 1px solid #eceef5; font-size: max(11px, .6rem); }
.au-mock-cars img { width: 100%; height: 34px; object-fit: contain; }
.au-mock-cars b { display: block; margin-top: 4px; font-size: max(11px, .64rem); }
.au-mock-cars i { font-style: normal; color: var(--p-primary); font-weight: 700; }
.au-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: var(--p-r); background: rgb(11 16 32 / .82); border: 1px solid rgb(255 255 255 / .16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: .78rem; white-space: nowrap; font-weight: 600; color: #fff; box-shadow: 0 18px 40px -18px rgb(0 0 0 / .6); animation: auBob 6s ease-in-out infinite; }
.au-chip .i { font-size: 1rem; }
.au-chip-1 { right: -14px; top: 18%; }
.au-chip-1 .i { color: #4ade80; }
.au-chip-2 { left: -18px; bottom: 12%; animation-delay: -3s; }
.au-chip-2 .i { color: #67e8f9; }
.au-points { display: grid; gap: 12px; }
.au-points li { display: flex; gap: 12px; align-items: flex-start; color: rgb(255 255 255 / .82); font-size: .95rem; }
.au-points .i { flex: none; margin-top: 3px; padding: 3px; width: 22px; height: 22px; border-radius: var(--p-r-sm); background: rgb(255 255 255 / .1); color: #a5b4fc; }
.au-stats { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .1); }
.au-stats strong { display: block; font-family: var(--p-font-head); font-size: 1.5rem; color: #fff; letter-spacing: -.02em; }
.au-stats span { font-size: .8rem; color: rgb(255 255 255 / .55); }
.au-steps { display: grid; gap: 4px; max-width: 520px; }
.au-step { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; }
.au-step::before { content: ""; position: absolute; left: 19px; top: 52px; bottom: -8px; width: 2px; background: linear-gradient(rgb(255 255 255 / .18), rgb(255 255 255 / .04)); }
.au-step:last-child::before { display: none; }
.au-step-dot { flex: none; width: 40px; height: 40px; border-radius: var(--p-r-lg); display: grid; place-items: center; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); color: #c7d2fe; }
.au-step.is-done .au-step-dot { background: rgb(74 222 128 / .16); border-color: rgb(74 222 128 / .4); color: #4ade80; }
.au-step.is-now .au-step-dot { background: var(--p-grad); border-color: transparent; color: #fff; box-shadow: 0 0 0 6px rgb(99 102 241 / .18); }
.au-step strong { display: block; color: #fff; font-size: .98rem; }
.au-step span { color: rgb(255 255 255 / .6); font-size: .86rem; }
.au-quote { padding: 18px 20px; border-radius: var(--p-r-lg); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); max-width: 520px; }
.au-quote p { color: rgb(255 255 255 / .85); font-size: .95rem; }
.au-quote footer { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: .82rem; color: rgb(255 255 255 / .6); }
.au-quote footer b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--p-grad); color: #fff; font-size: .75rem; }

@keyframes auIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes auFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30px, 24px) scale(1.08); } }
@keyframes auTilt { 0%, 100% { transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); } 50% { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg) translateY(-6px); } }
@keyframes auBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .au-orb, .au-mock, .au-chip, .au-form { animation: none !important; } }
@media (max-width: 1320px) { .au-mock-nav em { display: none; } .au-mock-nav strong { margin-inline-start: auto; } }
@media (max-width: 1080px) { .au { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); } .au-chip-1 { right: 6px; } .au-chip-2 { left: 6px; } }
@media (max-width: 900px) { .au { grid-template-columns: 1fr; } .au-aside { display: none; } .au-main { min-height: 100dvh; } }
@media (max-width: 480px) { .au-row { grid-template-columns: 1fr; } .au-split { flex-wrap: wrap; } }

/* ---------------------------------------------------------------- mobile-first (docs/MOBILE-UX.md · platform) */
.au-forgot { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 2px; font-size: .92rem; font-weight: 650; color: var(--p-primary); }
.au-forgot .i { font-size: 1rem; }
.au-forgot:hover { text-decoration: underline; text-underline-offset: 3px; }
.au-more { display: inline-flex; align-items: center; gap: 6px; justify-self: start; min-height: 44px; padding: 0 2px; font-size: .92rem; font-weight: 650; color: var(--p-primary); }
.au-more span { font-weight: 500; color: var(--p-muted); }
.au-more[hidden] { display: none; }
.au-help { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.au-help-b { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--p-line-2); border-radius: var(--p-r); background: var(--p-surface); font-size: .9rem; font-weight: 650; color: var(--p-ink); }
.au-help-b .i { color: var(--p-primary); font-size: 1.1rem; }
.au-help-b.is-wa { border-color: #0d6f39; background: #118746; color: #fff; }
.au-help-b.is-wa .i { color: #fff; }
.au-sent-steps { display: grid; gap: 6px; max-width: 360px; margin: 18px auto 0; padding-left: 22px; list-style: decimal; text-align: start; font-size: .95rem; color: var(--p-text); }
.au-resend { display: grid; gap: 8px; margin-top: 22px; }
.au-resend-n { font-size: .88rem; color: var(--p-muted); }
.au-legal input { width: 22px; height: 22px; }
/* Edge/IE draw their own reveal eye inside password fields: one eye (ours) only */
.au-pass input::-ms-reveal, .au-pass input::-ms-clear { display: none; }
@media (max-width: 760px) {
  .au-main { padding: max(14px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
  .au-center { place-items: start center; padding-block: 18px 24px; }
  .au-kicker { padding: 5px 9px; font: 650 12.5px/1.2 var(--p-font); letter-spacing: 0; text-transform: none; }
  .au-sub { font-size: 15px; }
  .au-fields { margin-top: 18px; gap: 14px; }
  .au-back { min-height: 44px; font-size: 14px; }
  .au-top .p-logo { min-height: 44px; }
  .au-eye { width: 44px; height: 44px; right: 2px; }
  .au-meter-label { font-size: 13.5px; }
  .au-legal { font-size: 15px; }
  .au-legal input { width: 24px; height: 24px; }
  .au-err { font-size: 13.5px; }
  .au-opt { font-size: 13px; }
  .au-alt { font-size: 15px; }
  .au-new p { font-size: 15px; }
  .au-foot > span { display: inline-flex; align-items: center; min-height: 44px; padding-right: 6px; }
  .au-alt .au-link { display: inline-flex; align-items: center; min-height: 44px; }
  .au-trust { gap: 8px 16px; font-size: 14px; }
  .au-note { font-size: 15px; }
  .au-foot { gap: 0 4px; font-size: 14px; }
  .au-foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
  .au-help-b { flex: 1 1 auto; justify-content: center; font-size: 15px; }
}

/* =========================================================== night mode (docs/DARK-MODE.md · tokens in base.css) */
html[data-theme="dark"] .au-note { background: linear-gradient(120deg, #171b3d, #0d2430); border-color: #2a3170; color: #c7d2fe; }
