:root {
    --ink: #0b1220;
    --ink-soft: #1f2a44;
    --muted: #6b7280;
    --card: #ffffff;
    --bg-1: #0b1220;
    --bg-2: #101a2c;
    --accent: #f8fafc;
    --accent-2: #e2e8f0;
    --shadow: 0 24px 60px rgba(6, 15, 34, 0.35);
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(1200px 800px at 10% 10%, #1a2750 0%, var(--bg-1) 55%, #070b14 100%);
    color: var(--ink);
    font-family: "Segoe UI", Arial, sans-serif;
}

.auth-shell {
    width: min(1080px, 94vw);
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(9, 15, 26, 0.4);
    box-shadow: var(--shadow);
    border: 1px solid rgba(148, 163, 184, 0.15);
    position: relative;
}

.auth-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.18), rgba(15, 23, 42, 0.1));
    pointer-events: none;
}

.auth-left,
.auth-right {
    position: relative;
    z-index: 1;
    padding: 52px 48px;
}

.auth-left {
    color: #1f2937;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(160deg, #f2f6ff, #e6eefc);
    animation: floatIn 800ms ease-out both;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.brand-mark {
    width: 160px;
    height: 48px;
    display: flex;
    align-items: center;
}

.brand-mark img {
    display: block;
    max-height: 44px;
    width: auto;
}

.brand-text {
    font-size: 1.1rem;
}

.brand-sub {
    color: rgba(226, 232, 240, 0.8);
    font-size: 0.95rem;
}

.quote {
    font-size: 1.6rem;
    line-height: 1.35;
    font-weight: 600;
    color: #1f2937;
}

.quote small {
    display: block;
    margin-top: 18px;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
}

.badge-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-pill {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #1e3a8a;
    font-size: 0.85rem;
}

.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(12px);
    animation: fadeIn 700ms ease-out both;
}

.auth-card {
    width: min(380px, 90%);
    background: var(--card);
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(226, 232, 240, 0.9);
    animation: lift 700ms ease-out both;
}

.auth-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.auth-sub {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 22px;
}

.form-label {
    font-weight: 600;
    color: var(--ink-soft);
}

.form-control {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 12px 14px;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
    border-color: #60a5fa;
}

.btn-primary {
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border: none;
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.muted-link {
    color: #475569;
    text-decoration: none;
}

.muted-link:hover {
    color: #1f2937;
    text-decoration: underline;
}

.alert {
    border-radius: 12px;
    font-size: 0.92rem;
}

.auth-footer {
    margin-top: 14px;
    color: #94a3b8;
    font-size: 0.82rem;
    text-align: center;
}

@keyframes lift {
    0% { opacity: 0; transform: translateY(20px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes floatIn {
    0% { opacity: 0; transform: translateX(-24px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .auth-left {
        padding: 38px 32px;
    }
    .auth-right {
        padding: 36px 0;
    }
}

@media (max-width: 600px) {
    .auth-shell {
        min-height: auto;
    }
    .auth-left {
        display: none;
    }
    .auth-card {
        width: min(420px, 92%);
    }
    .brand-mark {
        width: 140px;
        height: 40px;
    }
    .brand-mark img {
        max-height: 36px;
    }
}
