:root {
    --page: #f6f3ee;
    --panel: #ffffff;
    --ink: #1f2528;
    --muted: #657073;
    --border: #d8d2c9;
    --line: var(--border);
    --accent: #1f7a6b;
    --accent-dark: #14564b;
    --error-bg: #fff0f0;
    --error-text: #8f1f1f;
    --success-bg: #eef9f2;
    --success-text: #1e6a3a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: var(--accent-dark);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 48px);
    border-bottom: 1px solid var(--border);
    background: var(--panel);
}

.site-header a {
    font-weight: 700;
    text-decoration: none;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--muted);
}

.page {
    width: min(960px, calc(100% - 36px));
    margin: 64px auto;
}

.auth-page {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 100vh;
    place-items: center;
    padding: 28px;
}

.auth-panel {
    width: min(420px, 100%);
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 12px 32px rgba(31, 37, 40, 0.08);
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 22px;
    font-size: 2rem;
    line-height: 1.15;
}

.field {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--ink);
    font: inherit;
}

button {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

button:hover,
button:focus {
    background: var(--accent-dark);
}

.notice {
    padding: 11px 12px;
    border-radius: 6px;
}

.notice--error {
    background: var(--error-bg);
    color: var(--error-text);
}

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

@media (max-width: 640px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}
