:root {
    --bg: #daeaff;
    --surface: #ffffff;
    --surface-soft: #eef4fa;
    --text: #1f2d3d;
    --muted: #66788a;
    --primary: #0d3b66;
    --primary-hover: #15528c;
    --border: #d9e2ec;
    --error-bg: #fff1f1;
    --error-text: #b42318;
    --shadow: 0 18px 40px rgba(13, 59, 102, 0.10);
    --radius: 18px;
}

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

html {
    color-scheme: light;
}

body {
    min-height: 100vh;
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(13, 59, 102, 0.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(21, 82, 140, 0.08), transparent 24%),
        var(--bg);
    color: var(--text);
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-shell {
    width: 100%;
    max-width: 1080px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: var(--surface);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(31, 45, 61, 0.08);
}

.auth-brand {
    background: linear-gradient(160deg, #0d3b66 0%, #114b82 100%);
    color: white;
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.brand-logo {
    align-self: flex-start;
}

.brand-logo a {
    display: inline-block;
}

.brand-logo img {
    height: 90px;
    width: auto;
    display: block;
    border-radius: 8px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 14px;
    font-weight: 600;
}

.brand-badge::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbe3ff;
}

.brand-copy h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    margin-bottom: 18px;
}

.brand-copy p {
    max-width: 38ch;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.65;
}

.brand-meta {
    display: grid;
    gap: 14px;
    margin-top: auto;
}

.meta-card {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.meta-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.96rem;
}

.meta-card span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.94rem;
}

.auth-panel {
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-card h2 {
    font-size: 2rem;
    line-height: 1.12;
    margin-bottom: 10px;
    color: var(--primary);
}

.auth-card .intro {
    color: var(--muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

.error-box {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--error-bg);
    color: var(--error-text);
    font-size: 0.95rem;
    border: 1px solid rgba(180, 35, 24, 0.15);
}

form {
    display: grid;
    gap: 18px;
}

.field {
    display: grid;
    gap: 8px;
}

label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

input {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fbfdff;
    padding: 0 16px;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 59, 102, 0.10);
    background: white;
}

.field-hint {
    font-size: 0.86rem;
    color: var(--muted);
}

.submit-btn {
    margin-top: 6px;
    height: 54px;
    border: none;
    border-radius: 14px;
    background: var(--primary);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 12px 24px rgba(13, 59, 102, 0.18);
}

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

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:focus-visible {
    outline: 3px solid rgba(13, 59, 102, 0.25);
    outline-offset: 3px;
}

.auth-footer {
    margin-top: 24px;
    color: var(--muted);
    font-size: 0.96rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.forgot-password {
    margin-top: -6px;
    margin-bottom: 6px;
    text-align: right;
}

.forgot-password a {
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.forgot-password a:focus-visible {
    outline: 3px solid rgba(13, 59, 102, 0.22);
    outline-offset: 3px;
    border-radius: 6px;
}

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

    .auth-brand,
    .auth-panel {
        padding: 32px 24px;
    }

    .brand-logo img {
        height: 78px;
    }
}

@media (max-width: 560px) {
    body {
        padding: 14px;
    }

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

    .auth-card h2 {
        font-size: 1.7rem;
    }

    .brand-copy h1 {
        font-size: 2rem;
    }

    .brand-logo img {
        height: 64px;
    }
}