:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172033;
    background: #f4f6f9;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
}

button,
input {
    font: inherit;
}

.auth-body {
    background: #f4f6f9;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(100%, 420px);
    padding: 32px;
    border: 1px solid #e2e7ef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(27, 39, 63, 0.08);
}

.auth-card.compact {
    text-align: center;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    border-radius: 12px;
    background: #f1bd2d;
    color: #1c2434;
    font-size: 21px;
    font-weight: 800;
}

.compact .brand-mark {
    margin-inline: auto;
}

h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
}

.auth-intro {
    margin: 9px 0 26px;
    color: #697386;
    line-height: 1.5;
}

.field {
    display: grid;
    gap: 7px;
    margin-bottom: 17px;
}

.field label {
    font-size: 14px;
    font-weight: 650;
}

.field input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #ccd4df;
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    color: #172033;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field input:focus {
    border-color: #9b7614;
    box-shadow: 0 0 0 3px rgba(241, 189, 45, 0.22);
}

.field span,
.validation-summary {
    color: #b42318;
    font-size: 13px;
}

.validation-summary:empty,
.field span:empty {
    display: none;
}

.validation-summary ul {
    margin: 0 0 18px;
    padding-left: 18px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 2px 0 20px;
    color: #4d586a;
    font-size: 14px;
}

.check-row input {
    width: 17px;
    height: 17px;
    accent-color: #7a5b09;
}

.primary-button {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    background: #202a3b;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.primary-button:hover {
    background: #111827;
}

.link-button {
    text-decoration: none;
}

.auth-link {
    margin: 22px 0 0;
    color: #697386;
    font-size: 14px;
    text-align: center;
}

.auth-link a {
    color: #5f4605;
    font-weight: 700;
}

.notice {
    margin-bottom: 18px;
    padding: 11px 12px;
    border-radius: 9px;
    font-size: 14px;
}

.notice.success {
    background: #edf8f0;
    color: #23613b;
}

.empty-page {
    min-height: 100vh;
    background: #ffffff;
}

.logout-form {
    position: fixed;
    top: 18px;
    right: 18px;
}

.logout-button {
    padding: 9px 14px;
    border: 1px solid #d8dee8;
    border-radius: 9px;
    background: #ffffff;
    color: #364153;
    cursor: pointer;
}

.logout-button:hover {
    background: #f6f7f9;
}

@media (max-width: 520px) {
    .auth-shell {
        padding: 16px;
    }

    .auth-card {
        padding: 25px 21px;
        border-radius: 15px;
    }
}
