/* ============================================================
   auth.css — v5 "Zinc"
   Split-screen login: black brand panel + compact white form.
   Vercel/Next.js aesthetic.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --brand:    #2563eb;
    --brand-600:#1d4ed8;
    --brand-50: #eff6ff;
    --ink:      #18181b;
    --muted:    #71717a;
    --faint:    #a1a1aa;
    --line:     #e4e4e7;
    --primary:  #18181b;
}

* { box-sizing: border-box; }

html { font-size: 15px; }

body.auth-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    background: #fafafa;
    font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    color: #3f3f46;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

.auth-shell {
    display: flex;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ---------------- Left: brand hero (black) ---------------- */
.auth-hero {
    flex: 0 0 42%;
    max-width: 540px;
    background: #0a0a0b;
    background-image:
        radial-gradient(ellipse 60% 45% at 20% 0%, rgba(37, 99, 235, .28), transparent 60%),
        radial-gradient(ellipse 55% 45% at 90% 100%, rgba(14, 165, 233, .18), transparent 60%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 38px 42px;
    position: relative;
    overflow: hidden;
}
/* Subtle grid pattern */
.auth-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
}
.auth-hero > * { position: relative; z-index: 1; }

.hero-top {
    display: flex;
    align-items: center;
    gap: 11px;
}
.hero-brand {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -.02em;
}
.hero-brand span { color: #60a5fa; }

/* Brand icon mark — replaces the logo image */
.brand-mark {
    width: 40px; height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    font-weight: 800;
    font-size: .82rem;
    letter-spacing: -.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px -4px rgba(37, 99, 235, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
    user-select: none;
    flex: none;
}
.brand-mark-center { width: 46px; height: 46px; font-size: .9rem; border-radius: 13px; }

.hero-mid h1 {
    font-size: clamp(1.5rem, 2.3vw, 2.05rem);
    font-weight: 800;
    letter-spacing: -.04em;
    margin: 0 0 10px;
    line-height: 1.18;
    color: #fff;
}
.hero-mid p {
    color: #a1a1aa;
    font-size: .84rem;
    line-height: 1.6;
    margin: 0 0 22px;
    max-width: 360px;
}
.hero-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.hero-points li {
    position: relative;
    padding-left: 28px;
    font-size: .8rem;
    font-weight: 500;
    color: #d4d4d8;
}
.hero-points li::before {
    content: '✓';
    position: absolute;
    left: 0; top: 0;
    width: 18px; height: 18px;
    border-radius: 6px;
    background: rgba(96, 165, 250, .12);
    border: 1px solid rgba(96, 165, 250, .3);
    color: #60a5fa;
    font-size: .6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-foot {
    color: #52525b;
    font-size: .7rem;
}

/* ---------------- Right: form panel ---------------- */
.auth-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 22px;
}

.login-box {
    width: 100%;
    max-width: 384px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px 26px 20px;
    box-shadow: 0 1px 2px rgba(24, 24, 27, .04), 0 8px 28px -12px rgba(24, 24, 27, .1);
    animation: card-in .4s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes card-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

.panel-head { margin-bottom: 18px; }
.panel-head h2 {
    font-size: 1.14rem;
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--ink);
    margin: 0 0 3px;
}
.panel-head p {
    color: var(--muted);
    font-size: .78rem;
    margin: 0;
}

/* Tabs */
.login-tabs {
    display: flex;
    background: #f4f4f5;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 3px;
    margin-bottom: 18px;
}
.login-tabs a {
    flex: 1;
    text-align: center;
    padding: 7px 6px;
    border-radius: 7px;
    font-weight: 600;
    font-size: .76rem;
    text-decoration: none;
    color: var(--muted);
    transition: all .18s ease;
}
.login-tabs a.active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 4px rgba(24, 24, 27, .1);
}

/* Form bits */
.form-label {
    font-size: .72rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    color: #3f3f46;
}
.form-control {
    border: 1px solid #d4d4d8;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: .85rem;
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(24, 24, 27, .04);
    transition: border-color .14s, box-shadow .14s;
}
.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.form-control::placeholder { color: var(--faint); }
/* Kill Chrome's yellow/blue autofill tint */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: var(--ink);
    caret-color: var(--ink);
    transition: background-color 99999s ease-in-out 0s;
}
.input-group-text {
    border: 1px solid #d4d4d8;
    background: #f4f4f5;
    font-weight: 600;
    font-size: .8rem;
    color: var(--muted);
}
.form-text { font-size: .72rem; color: var(--muted); }
.alert { font-size: .78rem; border-radius: 9px; padding: .55rem .8rem; }

.btn-login, .btn-wa {
    border: none;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    font-size: .85rem;
    transition: background .15s ease, box-shadow .15s ease;
}
.btn-login { background: var(--primary); }
.btn-login:hover, .btn-login:focus {
    color: #fff;
    background: #2f2f36;
    box-shadow: 0 6px 16px -6px rgba(24, 24, 27, .4);
}
.btn-wa { background: #16a34a; }
.btn-wa:hover, .btn-wa:focus {
    color: #fff;
    background: #15803d;
    box-shadow: 0 6px 16px -6px rgba(22, 163, 74, .45);
}
.btn-link { font-size: .78rem; }

.otp-input {
    letter-spacing: 9px;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
}

.auth-footer {
    text-align: center;
    color: var(--faint);
    margin: 18px 0 0;
    font-size: .68rem;
}
.auth-sub { color: var(--muted); font-size: .78rem; margin: 2px 0 0; }

/* Legacy bits from older markup — neutralized */
.auth-orb { display: none; }
.brand-logo {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
    display: block;
}
.brand-logo .accent { color: var(--brand); }

/* ---------------- Password reset card ---------------- */
.reset-card {
    width: 100%;
    max-width: 380px;
    margin: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px 26px 20px;
    box-shadow: 0 1px 2px rgba(24, 24, 27, .04), 0 8px 28px -12px rgba(24, 24, 27, .1);
    animation: card-in .4s cubic-bezier(.22, 1, .36, 1) both;
    position: relative;
    z-index: 1;
}
.reset-card h4 { font-size: 1.1rem; font-weight: 700; color: var(--ink); }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
    .auth-shell { flex-direction: column; }
    .auth-hero {
        flex: none;
        max-width: none;
        padding: 18px 18px 20px;
        gap: 12px;
    }
    .hero-mid h1 { font-size: 1.15rem; margin-bottom: 4px; }
    .hero-mid p { font-size: .76rem; margin-bottom: 0; max-width: none; }
    .hero-points, .hero-foot { display: none; }
    .auth-panel { padding: 22px 14px 36px; align-items: flex-start; }
    .login-box { padding: 22px 18px 16px; border-radius: 12px; }
}
