:root {
    --navy: #10243d;
    --blue: #1768c4;
    --blue-dark: #1156a3;
    --background: #f3f6fa;
    --white: #ffffff;
    --text: #243447;
    --muted: #6b7785;
    --border: #dce3eb;
    --danger: #c62828;
    --success: #16803c;
    --success-bg: #eef9f1;
    --danger-bg: #fff1f1;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--background);
    color: var(--text);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--white);
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(16, 36, 61, 0.10);
}

.wide-card {
    max-width: 560px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 26px;
}

.auth-brand h1 {
    margin: 0;
    color: var(--navy);
    font-size: 31px;
}

.auth-brand p {
    margin: 7px 0 0;
    color: var(--muted);
}

.auth-heading {
    margin-bottom: 24px;
}

.auth-heading h2 {
    margin: 0 0 9px;
    color: var(--navy);
    font-size: 24px;
}

.auth-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.field input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    color: var(--text);
    background: var(--white);
}

.field input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(23, 104, 196, 0.10);
}

.field small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: var(--blue);
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

button:hover:not(:disabled) {
    background: var(--blue-dark);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.message {
    min-height: 24px;
    margin-top: 16px;
    padding: 0;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    line-height: 1.45;
}

.message.success,
.message.error {
    padding: 11px 12px;
}

.message.success {
    color: var(--success);
    background: var(--success-bg);
}

.message.error {
    color: var(--danger);
    background: var(--danger-bg);
}

.back-link {
    display: block;
    margin-top: 22px;
    text-align: center;
    color: var(--blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.back-link:hover {
    text-decoration: underline;
}

.account-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.account-summary > div {
    min-width: 0;
}

.summary-label {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.account-summary strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--navy);
    font-size: 14px;
}

.forgot-link-row {
    margin: -6px 0 18px;
    text-align: right;
}

.forgot-link {
    color: var(--blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.forgot-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .auth-page {
        align-items: flex-start;
        padding: 16px;
    }

    .auth-card {
        margin-top: 18px;
        padding: 24px 20px;
    }

    .account-summary {
        grid-template-columns: 1fr;
    }
}
