:root {
    --bg: #f5f7fa;
    --card: #ffffff;
    --text: #172033;
    --muted: #64748b;
    --primary: #0b1f3a;
    --primary-soft: #123766;
    --secondary: #2f3a4a;
    --border: #dce3eb;
    --danger: #b42318;
    --danger-bg: #fff0ee;
    --success: #067647;
    --success-bg: #ecfdf3;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 0.95fr) minmax(420px, 1.05fr);
}

.auth-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px;
    background:
        linear-gradient(135deg, rgba(11, 31, 58, 0.96), rgba(18, 55, 102, 0.94)),
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.14), transparent 30%);
    color: #ffffff;
}

.auth-side-inner {
    max-width: 520px;
}

.auth-side-kicker {
    margin: 0 0 20px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
    font-weight: 700;
}

.auth-quote {
    margin: 0;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.auth-quote-small {
    margin-top: 24px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,0.78);
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 24px;
}

.auth-card {
    width: min(100%, 480px);
    padding: 36px;
    background: var(--card);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.auth-logo {
    display: block;
    max-width: 165px;
    height: auto;
    margin: 0 auto 28px;
}

h1 {
    margin: 0 0 8px;
    font-size: 30px;
    letter-spacing: -0.03em;
    color: var(--primary);
    text-align: center;
}

.muted {
    margin: 0 0 28px;
    color: var(--muted);
    line-height: 1.6;
    text-align: center;
}

label {
    display: block;
    margin: 14px 0 7px;
    font-weight: 700;
    color: var(--secondary);
    font-size: 14px;
}

input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 15px;
    outline: none;
    background: #ffffff;
    color: var(--text);
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11, 31, 58, 0.08);
}

button {
    width: 100%;
    margin-top: 20px;
    padding: 14px 16px;
    border: 0;
    border-radius: 14px;
    background: var(--primary);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

button:hover {
    background: var(--primary-soft);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.alert,
.success {
    padding: 13px 14px;
    border-radius: 14px;
    line-height: 1.5;
    font-size: 14px;
}

.alert {
    color: var(--danger);
    background: var(--danger-bg);
}

.success {
    color: var(--success);
    background: var(--success-bg);
}

.links {
    display: grid;
    gap: 9px;
    margin-top: 22px;
    text-align: center;
}

.links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.links a:hover {
    text-decoration: underline;
}

.disclaimer {
    margin-top: 24px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.error-code {
    margin: 0 0 8px;
    color: var(--muted);
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.12em;
}

@media (max-width: 900px) {
    .auth-shell {
        display: block;
        min-height: 100vh;
    }

    .auth-side {
        display: none;
    }

    .auth-main {
        min-height: 100vh;
        padding: 28px 18px;
    }

    .auth-card {
        padding: 28px;
        border-radius: 22px;
    }

    .auth-logo {
        max-width: 145px;
    }
}