/* =========================================================
   SWA AUTHENTICATION DESIGN SYSTEM
========================================================= */

:root {
    --auth-bg: #f4f6f8;
    --auth-surface: #ffffff;

    --auth-green: #2f4a27;
    --auth-green-dark: #243a1f;
    --auth-gold: #d1a747;

    --auth-text: #2d2d2d;
    --auth-text-muted: #6c757d;
    --auth-border: #dce2e6;

    --auth-error-bg: #fbeaea;
    --auth-error-text: #8a2d2d;
    --auth-error-border: #e7bcbc;

    --auth-radius-large: 20px;
    --auth-radius-medium: 12px;

    --auth-shadow:
        0 18px 45px rgba(33, 44, 39, 0.12);
}

/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;

    background:
        linear-gradient(
            145deg,
            #f7f8f9 0%,
            var(--auth-bg) 55%,
            #edf1ed 100%
        );

    color: var(--auth-text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.6;
}

/* =========================================================
   PAGE
========================================================= */

.auth-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;
}

/* =========================================================
   AUTH CARD
========================================================= */

.auth-card {
    width: min(100%, 480px);

    overflow: hidden;

    background: var(--auth-surface);

    border: 1px solid var(--auth-border);
    border-top: 6px solid var(--auth-gold);
    border-radius: var(--auth-radius-large);

    box-shadow: var(--auth-shadow);
}

/* =========================================================
   HEADER
========================================================= */

.auth-header {
    padding: 38px 38px 26px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            var(--auth-green),
            var(--auth-green-dark)
        );

    color: #ffffff;
}

.auth-eyebrow {
    margin: 0 0 10px;

    color: #e9efe5;

    font-size: 0.76rem;
    font-weight: 800;

    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.auth-header h1 {
    margin: 0;

    font-size: clamp(2rem, 6vw, 2.8rem);
    line-height: 1.1;

    font-weight: 700;
}

.auth-description {
    margin: 12px auto 0;

    max-width: 340px;

    color: #edf2e9;

    font-size: 1rem;
}

/* =========================================================
   ERROR MESSAGE
========================================================= */

.auth-error {
    margin: 24px 32px 0;
    padding: 13px 15px;

    background: var(--auth-error-bg);
    color: var(--auth-error-text);

    border: 1px solid var(--auth-error-border);
    border-radius: var(--auth-radius-medium);

    font-size: 0.92rem;
    font-weight: 700;
}

/* =========================================================
   FORM
========================================================= */

.auth-form {
    padding: 32px 38px 28px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: var(--auth-green-dark);

    font-size: 0.9rem;
    font-weight: 800;
}

.form-group input {
    width: 100%;
    min-height: 50px;

    padding: 12px 14px;

    background: #ffffff;
    color: var(--auth-text);

    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-medium);

    font: inherit;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.form-group input:hover {
    border-color: #c8d0d5;
}

.form-group input:focus {
    border-color: var(--auth-gold);

    box-shadow:
        0 0 0 4px rgba(209, 167, 71, 0.18);
}

.auth-button {
    width: 100%;
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 4px;
    padding: 12px 18px;

    background: var(--auth-green);
    color: #ffffff;

    border: 0;
    border-radius: 999px;

    font: inherit;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 9px 20px rgba(47, 74, 39, 0.2);

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-button:hover {
    transform: translateY(-1px);

    background: var(--auth-green-dark);

    box-shadow:
        0 12px 24px rgba(47, 74, 39, 0.24);
}

.auth-button:focus-visible {
    outline: 3px solid rgba(209, 167, 71, 0.55);
    outline-offset: 3px;
}

.auth-button:active {
    transform: translateY(0);
}

/* =========================================================
   FOOTER
========================================================= */

.auth-footer {
    padding: 18px 30px 22px;

    background: #f8f9fa;
    color: var(--auth-text-muted);

    border-top: 1px solid var(--auth-border);

    text-align: center;

    font-size: 0.82rem;
    line-height: 1.55;
}

/* =========================================================
   FOOTER LINKS
========================================================= */

.auth-footer__link {
    margin: 0 0 14px;
}

.auth-footer__link a {
    color: var(--auth-green);

    font-weight: 700;

    text-decoration: none;

    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}

.auth-footer__link a:hover {
    color: var(--auth-green-dark);

    text-decoration: underline;
}

/* =========================================================
   SUCCESS
========================================================= */

.auth-success {

    margin: 24px 32px 0;
    padding: 14px 16px;

    background: #e8f4e7;

    color: #2f6f35;

    border: 1px solid #b7d9b8;

    border-radius: 12px;

    font-weight: 700;

}

/* =========================================================
   DEVELOPMENT
========================================================= */

.auth-test-link a {

    color: var(--auth-green);

    font-weight: 700;

    text-decoration: none;

}

.auth-test-link a:hover {

    text-decoration: underline;

}/* =========================================================
   DEVELOPMENT
========================================================= */

.auth-test-link {

    margin: 0 38px 28px;

     padding: 18px 20px;

    background: #fff8df;

    border: 1px dashed var(--auth-gold);

    border-radius: 12px;

    text-align: center;

}

.auth-test-link strong {

    display: block;

    margin-bottom: 8px;

    color: var(--auth-gold);

    font-size: .85rem;

    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;

}

.auth-test-link a {

    color: var(--auth-green);

    font-weight: 700;

    text-decoration: none;

}

.auth-test-link a:hover {

    text-decoration: underline;

}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 560px) {

    .auth-page {
        align-items: flex-start;

        padding: 18px 12px;
    }

    .auth-card {
        border-radius: 16px;
    }

    .auth-header {
        padding: 30px 24px 22px;
    }

    .auth-header h1 {
        font-size: 2rem;
    }

    .auth-error {
        margin: 20px 20px 0;
    }

    .auth-form {
        padding: 26px 20px 24px;
    }

    .auth-footer {
        padding: 16px 20px 20px;
    }

}