/* Login / register / password pages: split screen — form on the left, animated brand panel on the right. */
.auth-page { background: #fff; }
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }

/* form side: header row, then a raised card on a soft dotted backdrop */
.auth-side { position: relative; display: flex; flex-direction: column; align-items: center; padding: 28px 40px 24px; background:
    radial-gradient(560px 360px at 0% 0%, rgba(99, 102, 241, .14), transparent 70%),
    radial-gradient(520px 360px at 100% 100%, rgba(34, 211, 238, .12), transparent 70%), #f8fafc; }
.auth-side::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(15, 23, 42, .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 70%); }
.auth-top { position: relative; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-side .logo { margin: 0; }
.auth-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #475569; padding: 8px 12px; border-radius: 10px; transition: background .15s, color .15s; }
.auth-back:hover { background: rgba(15, 23, 42, .05); color: #0f172a; text-decoration: none; }
.auth-back i { font-size: 12px; }
.auth-split .auth-card { position: relative; width: 100%; max-width: 448px; margin: auto 0; padding: 32px 36px 30px; background: #fff; border: 1px solid #e6eaf0; border-radius: 22px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 24px 60px -24px rgba(30, 41, 89, .22); }
.auth-side > .auth-card { margin-top: 32px; margin-bottom: 32px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 26px; border-radius: 12px; background: #f1f5f9; }
.auth-tabs a { text-align: center; padding: 9px 10px; border-radius: 9px; font-size: 14px; font-weight: 600; color: #64748b; transition: background .15s, color .15s, box-shadow .15s; }
.auth-tabs a:hover { color: #0f172a; text-decoration: none; }
.auth-tabs a.on { background: #fff; color: #0f172a; box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 2px 8px rgba(15, 23, 42, .06); }
.auth-tabs a:focus-visible { outline: 2px solid #6366f1; outline-offset: 1px; }
.auth-split .auth-card h1 { font-size: 26px; line-height: 1.2; margin-bottom: 6px; letter-spacing: -.02em; }
.auth-split .auth-card .sub { font-size: 15px; margin-bottom: 22px; }
.auth-split .field { margin-bottom: 16px; }
.auth-split .field label { color: #334155; font-size: 13.5px; }
.auth-split .input { padding: 12px 14px; border-radius: 12px; background: #fff; border-color: #dbe2ea; }
.auth-split .input:hover { border-color: #c3ccd8; }
.auth-split .input:focus { border-color: #6366f1; box-shadow: 0 0 0 4px rgba(99, 102, 241, .15); }
.input-ico { position: relative; }
.input-ico > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); z-index: 1; font-size: 14px; color: #94a3b8; pointer-events: none; transition: color .15s; }
.input-ico .input { padding-left: 40px; }
.input-ico:focus-within > i { color: #6366f1; }
.auth-split .btn-lg { padding: 14px 24px; border-radius: 12px; }
.auth-split .auth-card form .btn:not(.btn-google):not(.btn-ghost):not(.btn-link) { background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 10px 24px -10px rgba(79, 70, 229, .7); transition: transform .15s, box-shadow .15s, filter .15s; }
.auth-split .auth-card form .btn:not(.btn-google):not(.btn-ghost):not(.btn-link):hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(79, 70, 229, .75); }
.auth-split .btn-ghost { border-radius: 12px; padding: 13px 20px; background: #fff; color: #4338ca; border-color: #c7d2fe; transition: background .15s, border-color .15s; }
.auth-split .btn-ghost:hover { background: #eef2ff; border-color: #a5b4fc; }
.auth-split .btn-google { border-radius: 12px; border-color: #dbe2ea; font-weight: 600; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.auth-split .btn-google:hover { border-color: #c3ccd8; background: #f8fafc; }
.auth-split .auth-foot { margin-top: 22px; font-size: 15px; text-align: center; }
.auth-split .auth-foot a { font-weight: 600; }
.auth-split .auth-legal { position: relative; margin: 0; }
.auth-perks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid #eef2f6; font-size: 13px; color: #475569; }
.auth-perks i { color: #059669; margin-right: 4px; font-size: 12px; }
.btn-link { background: none; border: 0; padding: 4px 2px; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-link:hover { color: var(--ink); }
.btn-link:focus-visible, .auth-split .btn-ghost:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.auth-split .btn-google { border-radius: 12px; border-color: #dbe2ea; }
.auth-split .btn-google:hover { border-color: #c3ccd8; }
.auth-split .auth-foot { margin-top: 28px; font-size: 15px; }
.auth-split .auth-foot a { font-weight: 600; }
.auth-split .auth-legal { margin: 0; }
.field-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -2px 0 20px; }
.field-row .check { margin: 0; font-weight: 400; }
.field-row a { font-size: 14px; font-weight: 600; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* password show/hide + strength */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: #94a3b8; cursor: pointer; }
.pw-toggle:hover { color: #475569; background: #f1f5f9; }
.pw-toggle:focus-visible { outline: 2px solid #6366f1; }
.strength { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.strength i { flex: 1; height: 4px; border-radius: 4px; background: #e2e8f0; position: relative; overflow: hidden; }
.strength i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; transition: width .25s, background .25s; }
.strength[data-level="1"] i::after { width: 20%; background: #ef4444; }
.strength[data-level="2"] i::after { width: 50%; background: #f59e0b; }
.strength[data-level="3"] i::after { width: 75%; background: #22c55e; }
.strength[data-level="4"] i::after { width: 100%; background: #16a34a; }
.strength span { min-width: 120px; text-align: right; }

/* brand panel */
.auth-art { position: sticky; top: 0; height: 100vh; overflow: hidden; isolation: isolate; background: #0b1020; color: rgba(255, 255, 255, .74); display: flex; align-items: center; justify-content: center; padding: 48px; }
.auth-glow { position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(600px 420px at 85% 10%, rgba(99, 102, 241, .45), transparent 70%),
    radial-gradient(520px 380px at 10% 95%, rgba(34, 211, 238, .25), transparent 70%),
    radial-gradient(400px 300px at 50% 55%, rgba(192, 132, 252, .18), transparent 70%); }
.auth-glow::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 50% 45%, #000, transparent 75%); }
.auth-sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.auth-sparks b { position: absolute; left: var(--x); top: 0; height: 100%; width: var(--s); transform: translateY(100%); animation: auth-float var(--t) cubic-bezier(.45, 0, .55, 1) var(--d) infinite; }
.auth-sparks b::before { content: ""; position: absolute; top: 0; left: 0; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle, #fff 0 30%, #a5b4fc 60%, transparent 72%); box-shadow: 0 0 8px 2px rgba(129, 140, 248, .8), 0 0 18px 4px rgba(129, 140, 248, .35); }
.auth-sparks b:nth-child(3n)::before { background: radial-gradient(circle, #fff 0 30%, #67e8f9 60%, transparent 72%); box-shadow: 0 0 8px 2px rgba(34, 211, 238, .8), 0 0 18px 4px rgba(34, 211, 238, .3); }
.auth-sparks b:nth-child(3n+1)::before { background: radial-gradient(circle, #fff 0 30%, #d8b4fe 60%, transparent 72%); box-shadow: 0 0 8px 2px rgba(192, 132, 252, .8), 0 0 18px 4px rgba(192, 132, 252, .3); }
@keyframes auth-float {
    0% { transform: translate(0, 100%); opacity: 0; }
    12% { opacity: 1; }
    50% { transform: translate(14px, 40%); }
    88% { opacity: .9; }
    100% { transform: translate(-6px, -4%); opacity: 0; }
}

.auth-art-inner { width: 100%; max-width: 500px; }
.auth-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; color: #c7d2fe; background: rgba(99, 102, 241, .15); border: 1px solid rgba(129, 140, 248, .35); }
.auth-art h2 { color: #fff; font-size: 38px; line-height: 1.12; margin: 18px 0 14px; letter-spacing: -.03em; }
.auth-art h2 em { font-style: normal; background: linear-gradient(90deg, #a5b4fc, #67e8f9, #d8b4fe); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-art p { font-size: 16px; margin: 0 0 24px; }
.auth-points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.auth-points i { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; color: #fff; background: linear-gradient(135deg, #6366f1, #22d3ee); margin-top: -1px; }
.auth-points b { color: #fff; font-weight: 600; }

/* mini "AI is building your site" demo */
.auth-demo { border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(99, 102, 241, .1); backdrop-filter: blur(6px); overflow: hidden; }
.auth-demo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.auth-demo-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.auth-demo-bar span { margin-left: 10px; font-size: 11px; color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); padding: 3px 10px; border-radius: 6px; }
.auth-demo-prompt { display: flex; align-items: center; gap: 10px; margin: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(129, 140, 248, .35); font-size: 13px; color: #e0e7ff; }
.auth-demo-prompt i { color: #a5b4fc; }
.auth-demo-prompt .typed { overflow: hidden; white-space: nowrap; border-right: 2px solid #a5b4fc; width: 0; animation: auth-type 9s steps(40) infinite, auth-caret .8s step-end infinite; }
@keyframes auth-type { 0%, 4% { width: 0; } 30%, 92% { width: 40ch; } 100% { width: 0; } }
@keyframes auth-caret { 50% { border-color: transparent; } }
.auth-demo-site { margin: 0 14px 14px; border-radius: 10px; background: #fff; padding: 12px; display: grid; gap: 12px; }
.auth-demo-site > * { opacity: .12; animation: auth-build 9s ease infinite; }
.d-nav { display: flex; align-items: center; gap: 8px; animation-delay: 0s; }
.d-nav b { width: 46px; height: 10px; border-radius: 4px; background: #fb923c; margin-right: auto; }
.d-nav span { width: 28px; height: 6px; border-radius: 3px; background: #e2e8f0; }
.d-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 8px; background: linear-gradient(135deg, #fff7ed, #fef3c7); }
.d-hero span { display: block; border-radius: 4px; }
.d-hero .l1 { height: 12px; width: 92%; background: #431407; margin-bottom: 6px; }
.d-hero .l2 { height: 7px; width: 70%; background: #fdba74; margin-bottom: 12px; }
.d-hero .cta { height: 18px; width: 64px; border-radius: 6px; background: #ea580c; }
.d-img { height: 70px; border-radius: 8px; background: radial-gradient(circle at 30% 35%, #fde68a, transparent 40%), linear-gradient(135deg, #f59e0b, #b45309); }
.d-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.d-cards div { height: 44px; border-radius: 6px; background: #f1f5f9; border: 1px solid #e2e8f0; }
.auth-demo-site > :nth-child(1) { animation-name: auth-build-1; }
.auth-demo-site > :nth-child(2) { animation-name: auth-build-2; }
.auth-demo-site > :nth-child(3) { animation-name: auth-build-3; }
@keyframes auth-build-1 { 0%, 32% { opacity: .12; transform: translateY(8px); } 38%, 92% { opacity: 1; transform: none; } 100% { opacity: .12; } }
@keyframes auth-build-2 { 0%, 40% { opacity: .12; transform: translateY(8px); } 47%, 92% { opacity: 1; transform: none; } 100% { opacity: .12; } }
@keyframes auth-build-3 { 0%, 50% { opacity: .12; transform: translateY(8px); } 57%, 92% { opacity: 1; transform: none; } 100% { opacity: .12; } }

@media (prefers-reduced-motion: reduce) {
    .auth-sparks { display: none; }
    .auth-demo-prompt .typed { animation: none; width: auto; border: 0; }
    .auth-demo-site > * { animation: none; opacity: 1; }
}

@media (max-width: 960px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .auth-side { padding: 24px 16px; }
    .auth-split .auth-card { padding: 26px 22px 24px; border-radius: 18px; }
    .auth-side > .auth-card { margin-top: 24px; margin-bottom: 24px; }
}
@media (max-width: 480px) {
    .auth-split .auth-card h1 { font-size: 26px; }
    .field-pair { grid-template-columns: 1fr; gap: 0; }
}

/* Consent notes: small, left-aligned, never laid out as a grid. */
.auth-split .consent { display: block; line-height: 1.55; font-size: 12.5px; color: var(--muted); }
.auth-split .google-consent { text-align: center; margin: 10px 0 0; padding: 0 4px; }
.auth-split .form-consent { margin: 14px 0 16px; }
.auth-split .auth-or { margin: 20px 0; }
