/* ============================================
   ARKAD BUSINESS CONSOLE — Auth
   Tokens mirror arkad.africa/css/style.css
   ============================================ */


*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body { height: 100%; }

body.auth {
    display: flex;
    min-height: 100vh;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    background: var(--white);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(16, 140, 248, 0.25); }

/* ── Brand pane ─────────────────────────────────────────────────────── */

.brand-pane {
    flex: 1.15;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    padding: 44px 52px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark) 0%, #0d1f3c 55%, var(--primary-dark) 100%);
    color: var(--white);
}

/* faint grid texture, like the marketing hero */
.brand-pane::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 80% at 30% 40%, black 30%, transparent 75%);
    pointer-events: none;
}

/* soft glow anchoring the headline */
.brand-pane::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    bottom: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 140, 248, 0.35), transparent 70%);
    pointer-events: none;
}

.brand-pane > * { position: relative; z-index: 1; }

.brand-logo {
    height: 46px;
    width: auto;
    align-self: flex-start;
    filter:
        drop-shadow(0 2px 14px rgba(16, 140, 248, 0.35))
        drop-shadow(0 0 1px rgba(255, 255, 255, 0.4));
}

.brand-body {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.brand-badge {
    display: inline-block;
    padding: 7px 18px;
    border: 1px solid rgba(77, 166, 255, 0.45);
    border-radius: 20px;
    background: rgba(16, 140, 248, 0.14);
    color: var(--primary-light);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.brand-body h1 {
    font-family: var(--font-heading);
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.brand-body h1 .highlight { color: var(--primary-light); }

.brand-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 6px;
    font-size: 15.5px;
    color: var(--gray-4);
}

.brand-points li {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-points svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    padding: 3px;
    border-radius: 50%;
    color: var(--white);
    background: rgba(16, 140, 248, 0.35);
}

.brand-foot {
    font-size: 13.5px;
    color: rgba(203, 213, 225, 0.55);
}

/* ── Sign-in pane ───────────────────────────────────────────────────── */

.signin-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 48px 40px;
    background:
        radial-gradient(circle at 85% -10%, rgba(16, 140, 248, 0.06), transparent 45%),
        var(--gray-6);
}

.signin-box {
    width: 100%;
    max-width: 400px;
}

.eyebrow {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.signin-box h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--dark);
    margin-bottom: 10px;
}

.signin-sub {
    font-size: 15px;
    color: var(--gray-1);
    margin-bottom: 30px;
}

/* Primary button — matches arkad.africa .btn.btn-primary */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 28px;
    border-radius: var(--radius);
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-primary:focus-visible {
    outline: 3px solid rgba(16, 140, 248, 0.35);
    outline-offset: 2px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 20px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gray-5);
}

.divider span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gray-3);
}

.secure-note {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--gray-2);
}

.secure-note strong { color: var(--gray-1); }

/* ── Legal footer ───────────────────────────────────────────────────── */

.legal {
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--gray-2);
}

.legal nav {
    display: flex;
    gap: 18px;
}

.legal a {
    color: var(--gray-1);
    text-decoration: none;
    transition: var(--transition);
}

.legal a:hover { color: var(--primary); }

/* ── Flash banner ───────────────────────────────────────────────────── */

.flash {
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid;
}

.flash-error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.35);
    color: #b91c1c;
}

.flash-success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.4);
    color: #047857;
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 880px) {
    body.auth { flex-direction: column; }

    .brand-pane {
        flex: none;
        gap: 26px;
        padding: 30px 28px;
    }

    /* compact brand header on small screens */
    .brand-body h1 { font-size: 24px; }
    .brand-points, .brand-foot { display: none; }
    .brand-badge { font-size: 10.5px; padding: 5px 14px; }

    .signin-pane {
        flex: 1;
        padding: 36px 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
