:root {
    --auth-bg: #f4f7fb;
    --auth-card: #ffffff;
    --auth-border: #dce4ef;
    --auth-muted: #64748b;
}

[data-bs-theme="dark"] {
    --auth-bg: #0f172a;
    --auth-card: #111827;
    --auth-border: #334155;
    --auth-muted: #94a3b8;
}

* { box-sizing: border-box; }

body.auth-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, .12), transparent 35%),
        var(--auth-bg);
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.auth-card {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    gap: 38px;
    padding: 34px;
    border: 1px solid var(--auth-border);
    border-radius: 22px;
    background: var(--auth-card);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
    position: relative;
}

.auth-brand {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    text-decoration: none;
    color: inherit;
}

.auth-brand strong,
.auth-brand small { display: block; }
.auth-brand small { color: var(--auth-muted); }

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #0d6efd;
    color: #fff;
}

.auth-visual {
    min-height: 410px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #0d6efd, #63a4ff);
}

.auth-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.auth-card form {
    align-self: center;
}

.eyebrow {
    color: #0d6efd;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .75rem;
}

.auth-footer {
    grid-column: 2;
    color: var(--auth-muted);
    font-size: .875rem;
    text-align: center;
}

.icon-button {
    border: 1px solid var(--auth-border);
    background: var(--auth-card);
    color: inherit;
    border-radius: 999px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
}

.auth-theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 20;
}

@media (max-width: 820px) {
    .auth-card {
        grid-template-columns: 1fr;
        width: min(520px, 100%);
        gap: 24px;
    }

    .auth-visual { display: none; }
    .auth-footer { grid-column: 1; }
}

@media (max-width: 480px) {
    .auth-page { padding: 14px; }
    .auth-card { padding: 24px 20px; border-radius: 16px; }
}
