.auth-page {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background: #083d25 url("../images/login-sunflower-field.jpg") center center / cover no-repeat fixed;
    color: #17231c;
}

.auth-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(3, 32, 19, 0.56);
}

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 72px;
    align-items: stretch;
    padding: 40px 64px;
}

.auth-intro {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
}

.auth-brand {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #fff;
    text-decoration: none;
}

.auth-brand:hover {
    color: #fff;
    text-decoration: none;
}

.auth-brand img {
    width: 50px;
    height: 50px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.auth-brand span {
    display: grid;
    gap: 2px;
}

.auth-brand strong {
    font-size: 18px;
    font-weight: 700;
}

.auth-brand small {
    color: rgba(255, 255, 255, 0.74);
    font-size: 11px;
    font-weight: 500;
}

.auth-story {
    width: 100%;
    max-width: 650px;
    padding: 72px 0;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 18px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 4px;
    background: rgba(4, 58, 34, 0.48);
    color: #ffd34d;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.auth-story h1 {
    margin: 0;
    color: #fff;
    font-size: 58px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0;
    text-shadow: 0 3px 22px rgba(0, 0, 0, 0.32);
}

.auth-story > p {
    max-width: 520px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.6;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.auth-security {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 38px;
    color: #fff;
}

.auth-security-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 211, 77, 0.52);
    border-radius: 8px;
    background: rgba(4, 58, 34, 0.64);
    color: #ffd34d;
}

.auth-security > span:last-child {
    display: grid;
    gap: 2px;
}

.auth-security strong {
    font-size: 13px;
    font-weight: 600;
}

.auth-security small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
}

.auth-copyright {
    color: rgba(255, 255, 255, 0.64);
    font-size: 11px;
}

.auth-panel {
    width: 100%;
    max-width: 420px;
    align-self: center;
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(0, 24, 13, 0.28);
    backdrop-filter: blur(14px);
}

.auth-mobile-brand {
    display: none;
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-panel-label {
    display: block;
    margin-bottom: 9px;
    color: #0d6a3e;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.auth-heading h2 {
    margin: 0;
    color: #122119;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

.auth-heading p {
    margin: 8px 0 0;
    color: #637168;
    font-size: 13px;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #fecaca;
    border-radius: 6px;
    background: #fff1f2;
    color: #a51d2b;
    font-size: 12px;
    line-height: 1.5;
}

.auth-alert svg {
    flex: 0 0 auto;
    margin-top: 1px;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    margin-bottom: 7px;
    color: #2d3c33;
    font-size: 12px;
    font-weight: 600;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap input {
    width: 100%;
    height: 48px;
    padding: 0 45px 0 43px;
    border: 1px solid #dce3de;
    border-radius: 6px;
    outline: none;
    background: #f8faf8;
    color: #17231c;
    font-size: 13px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.auth-input-wrap input::placeholder {
    color: #9aa69e;
}

.auth-input-wrap input:hover {
    border-color: #c7d2ca;
    background: #fff;
}

.auth-input-wrap input:focus {
    border-color: #15814d;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(21, 129, 77, 0.12);
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    color: #738178;
    pointer-events: none;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 11px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    transform: translateY(-50%);
    background: transparent;
    color: #738178;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    background: #edf3ef;
    color: #0d6a3e;
}

.auth-password-toggle:focus-visible {
    outline: 2px solid rgba(21, 129, 77, 0.42);
    outline-offset: 1px;
}

.auth-remember {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 1px 0 22px;
    color: #536158;
    font-size: 12px;
    cursor: pointer;
}

.auth-remember input {
    width: 16px;
    height: 16px;
    accent-color: #0d6a3e;
}

.auth-remember input:focus-visible {
    outline: 2px solid rgba(21, 129, 77, 0.42);
    outline-offset: 2px;
}

.auth-submit {
    width: 100%;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 6px;
    background: #0d6a3e;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 9px 22px rgba(13, 106, 62, 0.22);
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.auth-submit:hover {
    background: #095730;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(13, 106, 62, 0.28);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit:focus-visible {
    outline: 3px solid rgba(255, 195, 31, 0.7);
    outline-offset: 2px;
}

.auth-submit svg {
    color: #ffd34d;
}

.auth-support {
    margin: 20px 0 0;
    color: #839087;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 1100px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr) 390px;
        gap: 42px;
        padding: 32px 38px;
    }

    .auth-story h1 {
        font-size: 48px;
    }
}

@media (max-width: 820px) {
    .auth-page {
        background-position: 34% center;
    }

    .auth-backdrop {
        background: rgba(3, 32, 19, 0.68);
    }

    .auth-shell {
        grid-template-columns: 1fr;
        place-items: center;
        padding: 24px;
    }

    .auth-intro {
        display: none;
    }

    .auth-panel {
        max-width: 440px;
        padding: 32px;
    }

    .auth-mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 30px;
        color: #153121;
    }

    .auth-mobile-brand img {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .auth-mobile-brand strong {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .auth-page {
        background: #eff3ef;
    }

    .auth-backdrop {
        display: none;
    }

    .auth-shell {
        display: block;
        min-height: 100svh;
        padding: 0;
    }

    .auth-panel {
        min-height: 100svh;
        max-width: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 28px 22px;
        border: 0;
        border-radius: 0;
        background: #fff;
        box-shadow: none;
        backdrop-filter: none;
    }

    .auth-mobile-brand {
        margin-bottom: 34px;
    }

    .auth-heading h2 {
        font-size: 24px;
    }

    .auth-support {
        margin-top: 24px;
    }
}

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