:root {
    --green-950: #12372a;
    --green-800: #1f5c46;
    --green-700: #287258;
    --green-100: #e9f3ed;
    --cream: #f6f1e7;
    --paper: #fffdf8;
    --gold: #c69a45;
    --text: #1e2b25;
    --muted: #68756f;
    --border: #d9e1dc;
    --danger-bg: #fff0ef;
    --danger: #a23c34;
    --success-bg: #e9f7ef;
    --success: #236b43;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 10%, #eef5ef 0, transparent 28%),
        linear-gradient(135deg, var(--cream), #edf2ec);
    font-family:
        Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 520px);
    align-items: center;
    gap: 72px;
    width: min(1120px, calc(100% - 40px));
    margin: auto;
    padding: 54px 0;
}

.auth-brand {
    padding: 30px;
}

.brand-mark {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    border-radius: 22px;
    color: white;
    background: var(--green-950);
    box-shadow: 0 18px 40px rgba(18, 55, 42, 0.18);
    font-family: Georgia, serif;
    font-size: 40px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--green-700);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.auth-brand h1 {
    max-width: 600px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.02;
}

.brand-description {
    max-width: 590px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.auth-card {
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 28px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 28px 80px rgba(31, 72, 55, 0.14);
    backdrop-filter: blur(14px);
}

.auth-card-header h2 {
    margin: 0;
    font-size: 30px;
}

.auth-card-header p {
    margin: 10px 0 28px;
    color: var(--muted);
}

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

label {
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}

input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    outline: none;
    background: white;
    color: var(--text);
    font: inherit;
    font-weight: 500;
    transition: 0.2s ease;
}

input:focus {
    border-color: var(--green-700);
    box-shadow: 0 0 0 4px rgba(40, 114, 88, 0.12);
}

small {
    color: var(--muted);
    font-weight: 500;
}

button {
    margin-top: 5px;
    padding: 15px 18px;
    border: 0;
    border-radius: 13px;
    color: white;
    background: var(--green-950);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

button:hover {
    background: var(--green-800);
    transform: translateY(-1px);
}

button:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.message {
    margin-bottom: 20px;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

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

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

.auth-switch,
.back-link {
    margin: 24px 0 0;
    color: var(--muted);
    text-align: center;
}

.back-link {
    margin-top: 13px;
    font-size: 14px;
}

a {
    color: var(--green-700);
    font-weight: 750;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

@media (max-width: 820px) {
    .auth-page {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 30px 0;
    }

    .auth-brand {
        padding: 10px 8px;
    }

    .auth-brand h1 {
        font-size: 42px;
    }

    .brand-description {
        font-size: 16px;
    }

    .auth-card {
        padding: 28px 22px;
        border-radius: 22px;
    }
}
