:root {
    --login-page-bg: #f3f5f0;
    --login-surface: rgba(255, 255, 255, 0.94);
    --login-text: #1b2a1f;
    --login-muted: #68736b;
    --login-green: #315f3e;
    --login-green-dark: #244a2f;
    --login-accent: #9bcf53;
    --login-border: rgba(36, 74, 47, 0.14);
    --login-error-bg: #fff1ef;
    --login-error-border: #e3aaa1;
    --login-error-text: #822a20;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--login-page-bg);
}

body.login-page {
    min-height: 100vh;
    margin: 0;
    color: var(--login-text);
    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(155, 207, 83, 0.11),
            transparent 30rem
        ),
        var(--login-page-bg);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.login-main {
    width: min(100% - 32px, 520px);
    margin: 0 auto;
    padding: 48px 0 10px;
}

.login-card {
    padding: 34px;
    border: 1px solid var(--login-border);
    border-radius: 24px;
    background: var(--login-surface);
    box-shadow: 0 22px 60px rgba(29, 54, 36, 0.12);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.login-card__intro {
    margin-bottom: 27px;
}

.login-card__eyebrow {
    margin: 0 0 8px;
    color: var(--login-green);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-card h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 8vw, 3.8rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
}

.login-card__intro > p:last-child {
    margin: 14px 0 0;
    color: var(--login-muted);
    line-height: 1.55;
}

.login-alert {
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid var(--login-error-border);
    border-radius: 13px;
    color: var(--login-error-text);
    background: var(--login-error-bg);
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.4;
}

.login-form {
    display: grid;
    gap: 18px;
}

.login-field {
    display: grid;
    gap: 8px;
}

.login-field label {
    color: var(--login-text);
    font-size: 0.84rem;
    font-weight: 750;
}

.login-field input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid rgba(36, 74, 47, 0.2);
    border-radius: 13px;
    color: var(--login-text);
    background: #ffffff;
    font: inherit;
    outline: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.login-field input:focus {
    border-color: var(--login-green);
    box-shadow: 0 0 0 4px rgba(155, 207, 83, 0.2);
}

.login-submit {
    min-height: 54px;
    margin-top: 4px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--login-green-dark),
            var(--login-green)
        );
    box-shadow: 0 12px 28px rgba(36, 74, 47, 0.24);
    cursor: pointer;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.login-submit:hover {
    box-shadow: 0 16px 34px rgba(36, 74, 47, 0.31);
    transform: translateY(-1px);
}

.login-submit:focus-visible {
    outline: 4px solid rgba(155, 207, 83, 0.65);
    outline-offset: 3px;
}

.login-card__help {
    margin-top: 22px;
    text-align: center;
}

.login-card__help a {
    color: var(--login-green);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.login-card__help a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .login-main {
        width: calc(100% - 22px);
        padding-top: 30px;
    }

    .login-card {
        padding: 25px 20px;
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-field input,
    .login-submit {
        transition: none;
    }
}
