/*
 * Auth layout - split screen used by login & register.
 * Left: dark brand panel (.auth-brand). Right: form panel (.auth-main > .auth-card).
 */
body.auth { min-height: 100vh; background: var(--bg); }
.auth-shell { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }

/* ================= BRAND PANEL ================= */
.auth-brand {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
    padding: 40px 56px;
    color: #fff;
    background:
        radial-gradient(700px 420px at 90% -10%, rgba(16, 185, 129, .38), transparent 60%),
        radial-gradient(600px 400px at -10% 90%, rgba(20, 184, 166, .22), transparent 60%),
        linear-gradient(180deg, #04110D 0%, #06261D 60%, #073B2C 100%);
}
.auth-brand::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.auth-brand > * { position: relative; z-index: 1; }

.auth-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 19px; }
.auth-logo .mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-brand); box-shadow: 0 8px 22px rgba(16, 185, 129, .45); }
.auth-logo .mark svg { width: 23px; height: 23px; color: #fff; }

.auth-pitch h2 { color: #fff; font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 16px; }
.auth-pitch > p { color: rgba(255, 255, 255, .72); font-size: 17px; max-width: 480px; margin-bottom: 30px; }
.auth-points { list-style: none; display: grid; gap: 14px; }
.auth-points li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .88); font-size: 15px; }
.auth-points .pi { width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: var(--lime); }
.auth-points .pi svg { width: 18px; height: 18px; }

/* Floating preview cards */
.auth-preview { position: relative; height: 150px; }
.auth-float {
    position: absolute; display: flex; align-items: center; gap: 12px;
    padding: 13px 16px; border-radius: 16px;
    background: rgba(255, 255, 255, .96); color: var(--ink-2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
    animation: auth-float 6s ease-in-out infinite;
}
.auth-float .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.auth-float .ic svg { width: 21px; height: 21px; }
.auth-float b { display: block; font-family: var(--font-head); font-size: 19px; line-height: 1.1; }
.auth-float small { color: var(--muted); font-size: 12.5px; }
.auth-float.f1 { left: 0; top: 10px; }
.auth-float.f1 .ic { background: var(--green-50); color: var(--green-600); }
.auth-float.f2 { left: 230px; top: 64px; animation-delay: -3s; }
.auth-float.f2 .ic { background: #EEF2FF; color: #4F46E5; }
.auth-bubble {
    position: absolute; right: 0; top: 0; max-width: 230px;
    background: #D9FDD3; color: #111; border-radius: 14px 14px 4px 14px;
    padding: 10px 12px 18px; font-size: 13px; line-height: 1.45;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
    animation: auth-float 7s ease-in-out infinite; animation-delay: -1.5s;
}
.auth-bubble span { position: absolute; right: 10px; bottom: 3px; font-size: 10px; color: #667781; }
.auth-copy { color: rgba(255, 255, 255, .45); font-size: 13px; }

/* ================= FORM PANEL ================= */
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; position: relative; }
.auth-top { position: absolute; top: 24px; right: 28px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.auth-top a { font-weight: 600; }
.auth-card { width: 100%; max-width: 440px; animation: auth-in .5s ease; }
.auth-card.wide { max-width: 560px; }
.auth-mobile-logo { display: none; }
.auth-card h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.02em; }
.auth-card .lead { color: var(--muted); font-size: 15.5px; margin-bottom: 28px; }

.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 22px; flex-wrap: wrap; }
.auth-row .link-btn { background: none; border: 0; color: var(--green-600); font-weight: 600; font-size: 14px; cursor: pointer; padding: 0; }
.auth-row .link-btn:hover { text-decoration: underline; }
.auth-note { display: none; margin: -10px 0 20px; padding: 12px 14px; border-radius: 12px; background: var(--info-50); color: #1D4ED8; font-size: 13.5px; border: 1px solid #BFDBFE; }
.auth-note.show { display: block; animation: auth-in .3s ease; }

.auth-submit { width: 100%; padding: 14px 20px; font-size: 15.5px; border-radius: 14px; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 26px 0 18px; color: var(--muted-2); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-alt { text-align: center; color: var(--muted); font-size: 14.5px; }
.auth-alt a { font-weight: 700; }
.auth-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; color: var(--muted-2); font-size: 12.5px; }
.auth-secure svg { width: 15px; height: 15px; color: var(--green-600); }
.auth-credit { margin-top: 10px; text-align: center; color: var(--muted-2); font-size: 12px; }

/* Password strength meter (register) */
.strength { display: flex; gap: 6px; margin-top: 8px; }
.strength i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.strength[data-level="1"] i:nth-child(-n+1) { background: #F43F5E; }
.strength[data-level="2"] i:nth-child(-n+2) { background: #F59E0B; }
.strength[data-level="3"] i:nth-child(-n+3) { background: #84CC16; }
.strength[data-level="4"] i { background: var(--green); }
.strength-label { font-size: 12px; color: var(--muted); margin-top: 4px; min-height: 18px; }

@keyframes auth-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes auth-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
    .auth-brand { padding: 36px 40px; }
    .auth-float.f2 { left: 200px; }
    .auth-bubble { display: none; }
}
@media (max-width: 960px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-main { justify-content: flex-start; padding: 28px 18px 40px; background:
        radial-gradient(600px 300px at 50% -10%, rgba(16, 185, 129, .14), transparent 70%), var(--bg); }
    .auth-top { position: static; align-self: flex-end; margin-bottom: 18px; }
    .auth-mobile-logo { display: inline-flex; margin-bottom: 26px; color: var(--ink-2); }
    .auth-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px 24px; box-shadow: var(--shadow); }
    .auth-card h1 { font-size: 26px; }
}
@media (max-width: 420px) {
    .auth-card { padding: 26px 18px; }
    .auth-top { font-size: 13px; }
}

.auth-credit a { color: inherit; font-weight: 600; text-decoration: none; }
.auth-credit a:hover { text-decoration: underline; }
