
:root {
    --auth-green: #124c36;
    --auth-green-dark: #0b3527;
    --auth-accent: #c5a56a;
    --auth-bg: #f4f5ef;
    --auth-card: #ffffff;
    --auth-text: #23342c;
    --auth-muted: #68766e;
    --auth-border: #dce4dd;
    --auth-danger: #b42318;
}

* {
    box-sizing: border-box;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    padding: 28px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at top left, #e1e9dc 0, transparent 45%),
        var(--auth-bg);
    color: var(--auth-text);
    font-family: "Segoe UI", Arial, sans-serif;
}

.auth-shell {
    width: 100%;
    max-width: 440px;
    margin: auto;
}

.auth-card {
    position: relative;
    overflow: hidden;
    padding: 38px;
    background: var(--auth-card);
    border: 1px solid rgba(18, 76, 54, 0.10);
    border-radius: 20px;
    box-shadow: 0 20px 55px rgba(16, 48, 35, 0.10);
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--auth-green-dark),
        var(--auth-green),
        var(--auth-accent)
    );
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    color: var(--auth-green);
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.8px;
    text-decoration: none;
}

.auth-brand em {
    color: #9b7a3f;
    font-style: normal;
}

.auth-brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    background: var(--auth-green);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 22px;
}

.auth-eyebrow {
    margin: 0 0 8px;
    color: #98753c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-align: center;
    text-transform: uppercase;
}

.auth-card h1 {
    margin: 0 0 12px;
    color: var(--auth-green-dark);
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.auth-lead {
    margin: 0 0 25px;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}

.auth-card form p {
    margin: 0 0 18px;
}

.auth-card form label {
    display: block;
    margin-bottom: 7px;
    color: #30483a;
    font-size: 13px;
    font-weight: 600;
}

.auth-card input:not([type="checkbox"]):not([type="radio"]),
.auth-card select {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--auth-border);
    border-radius: 9px;
    outline: none;
    background: #fcfdfb;
    color: var(--auth-text);
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-card input:focus,
.auth-card select:focus {
    border-color: var(--auth-green);
    box-shadow: 0 0 0 3px rgba(18, 76, 54, 0.10);
}

.auth-card button,
.auth-button {
    display: inline-flex;
    width: 100%;
    min-height: 47px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 0;
    border-radius: 9px;
    background: var(--auth-green);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.auth-card button:hover,
.auth-button:hover {
    background: var(--auth-green-dark);
    transform: translateY(-1px);
}

.auth-card a:not(.auth-brand):not(.auth-button) {
    color: var(--auth-green);
    font-weight: 600;
    text-decoration: none;
}

.auth-card a:not(.auth-brand):not(.auth-button):hover {
    text-decoration: underline;
}

.auth-links {
    display: grid;
    gap: 13px;
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
}

.auth-divider {
    height: 1px;
    margin: 24px 0 18px;
    background: var(--auth-border);
}

.auth-note {
    margin: 17px 0 0;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

.auth-card .errorlist {
    margin: 6px 0;
    padding-left: 18px;
    color: var(--auth-danger);
    font-size: 12px;
}

.auth-card .helptext {
    display: block;
    margin-top: 6px;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.6;
}

.auth-card ul:not(.errorlist) {
    padding-left: 20px;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.7;
}

.auth-success-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    place-items: center;
    border: 1px solid #d7e7d9;
    border-radius: 50%;
    background: #edf6ed;
    color: var(--auth-green);
    font-size: 26px;
}

@media (max-width: 480px) {
    body.auth-page {
        padding: 18px 12px;
    }

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

    .auth-card h1 {
        font-size: 26px;
    }
}
