:root {
    --primary-900: #0a2b52;
    --primary-800: #124277;
    --primary-700: #1b5b9b;
    --surface: #e9eef6;
    --panel: #ffffff;
    --text: #13253b;
    --muted: #5f738b;
    --line: #d5dfec;
    --field: #f7fafd;
    --field-focus: #ffffff;
    --shadow: 0 38px 70px -48px rgba(10, 34, 62, 0.65);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background:
        radial-gradient(circle at 10% 15%, rgba(61, 105, 170, 0.18) 0%, rgba(61, 105, 170, 0) 36%),
        radial-gradient(circle at 90% 90%, rgba(39, 85, 151, 0.12) 0%, rgba(39, 85, 151, 0) 35%),
        var(--surface);
    font-family: "Plus Jakarta Sans", "Trebuchet MS", "Tahoma", sans-serif;
    color: var(--text);
}

.auth-shell {
    width: min(1020px, 100%);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
}

.auth-info {
    position: relative;
    isolation: isolate;
    min-width: 0;
    background: linear-gradient(150deg, var(--primary-900) 0%, var(--primary-800) 55%, var(--primary-700) 100%);
    color: #e4eeff;
    padding: 2.15rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.4rem;
}

.auth-info::before {
    content: "";
    position: absolute;
    inset: auto -120px -140px auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 68%);
    pointer-events: none;
    z-index: -1;
}

.auth-info::after {
    content: "";
    position: absolute;
    inset: 24px auto auto -84px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 221, 255, 0.15) 0%, rgba(196, 221, 255, 0) 68%);
    pointer-events: none;
    z-index: -1;
}

.auth-brand {
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.auth-logo {
    width: 78px;
    height: 78px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
}

.auth-brand-meta {
    line-height: 1.28;
}

.auth-brand-name {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #f0f6ff;
}

.auth-brand-meta small {
    font-size: 0.78rem;
    color: #c7daf8;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(187, 211, 245, 0.45);
    background: rgba(10, 39, 74, 0.38);
    border-radius: 999px;
    padding: 0.38rem 0.82rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-title {
    max-width: none;
    font-size: clamp(1.2rem, 2.2vw, 1.95rem);
    font-weight: 800;
    line-height: 1.15;
    margin-top: 0.95rem;
    margin-bottom: 0.9rem;
}

.auth-title-prefix,
.auth-title-name {
    display: block;
}

.auth-title-prefix {
    font-size: 0.95em;
}

.auth-title-name {
    margin-top: 0.08em;
    font-size: clamp(1rem, 1.6vw, 1.4rem);
    line-height: 1.2;
}

.auth-info p {
    max-width: 38ch;
    color: #d0e2ff;
    margin-bottom: 1rem;
    font-size: 1.02rem;
    line-height: 1.55;
}

.auth-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.auth-badges span {
    border: 1px solid rgba(176, 203, 245, 0.42);
    border-radius: 999px;
    background: rgba(15, 58, 108, 0.36);
    padding: 0.3rem 0.72rem;
    font-size: 0.77rem;
    color: #deebff;
    font-weight: 600;
}

.auth-card {
    padding: 2.2rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-card h1 {
    font-size: clamp(1.55rem, 2.1vw, 2rem);
    font-weight: 800;
    color: #10345e;
    letter-spacing: 0.01em;
}

.auth-card-note {
    color: var(--muted);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.form-label {
    font-weight: 600;
    color: #2f4562;
    margin-bottom: 0.45rem;
    letter-spacing: 0.01em;
}

.form-control {
    border-radius: 14px;
    border: 1px solid #c8d6e8;
    background: var(--field);
    padding: 0.76rem 0.82rem;
    min-height: 50px;
    font-size: 0.98rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.form-control:focus {
    border-color: #8caad1;
    background: var(--field-focus);
    box-shadow: 0 0 0 0.2rem rgba(73, 117, 180, 0.17);
}

.btn-primary {
    margin-top: 0.25rem;
    background: linear-gradient(180deg, #1a4f86 0%, #133f70 100%);
    border-color: #133f70;
    border-radius: 14px;
    padding: 0.78rem 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 24px -18px rgba(14, 51, 95, 0.65);
    transition: transform 140ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn-primary:hover {
    background: linear-gradient(180deg, #184a7d 0%, #113863 100%);
    border-color: #113863;
    transform: translateY(-1px);
    box-shadow: 0 16px 26px -16px rgba(12, 45, 83, 0.68);
}

.btn-primary:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(42, 92, 156, 0.24);
}

.alert {
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .auth-info {
        padding: 1.35rem 1.35rem 1.25rem;
        gap: 1.05rem;
    }

    .auth-info p {
        margin-bottom: 0.75rem;
        max-width: none;
        font-size: 0.96rem;
    }

    .auth-brand {
        margin-bottom: 0;
    }

    .auth-logo {
        width: 64px;
        height: 64px;
    }

    .auth-card {
        padding: 1.35rem;
    }

    .auth-title {
        font-size: clamp(1.3rem, 7.5vw, 1.9rem);
    }
}

@media (max-width: 520px) {
    body {
        padding: 0.75rem;
    }

    .auth-shell {
        border-radius: 16px;
    }

    .auth-card h1 {
        font-size: 1.45rem;
    }

    .btn-primary {
        padding-block: 0.72rem;
    }
}
