
/* ==========================================================
   Scout Login Page
   USA TODAY Co. visual identity
   ========================================================== */


/* ----------------------------------------------------------
   1. Variables
   ---------------------------------------------------------- */

:root {
    --scout-blue: #285CFE;
    --scout-pearl: #FEFFF5;
    --scout-sand: #EEEFE1;
    --scout-coal: #000000;
}


/* ----------------------------------------------------------
   2. Reset and Base
   ---------------------------------------------------------- */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--scout-pearl);
    color: var(--scout-coal);
    font-family: "Futura PT", Arial, sans-serif;
}


/* ----------------------------------------------------------
   3. Layout
   ---------------------------------------------------------- */

.login-page {
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;
}

.login-container {
    width: 100%;
    max-width: 440px;
}


/* ----------------------------------------------------------
   4. Branding
   ---------------------------------------------------------- */

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-bottom: 30px;
}

.login-icon {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.login-wordmark {
    font-family: "Adobe Caslon Pro", "Times New Roman", serif;
    font-size: 58px;
    font-weight: 400;
    letter-spacing: -2px;
    line-height: 1;
}


/* ----------------------------------------------------------
   5. Introduction
   ---------------------------------------------------------- */

.login-intro {
    text-align: center;
    margin-bottom: 28px;
}

.login-intro h1 {
    margin: 0 0 12px;

    font-family: "Adobe Caslon Pro", "Times New Roman", serif;
    font-size: 36px;
    font-weight: 400;
}

.login-intro p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}


/* ----------------------------------------------------------
   6. Login Card
   ---------------------------------------------------------- */

.login-card {
    padding: 36px;

    background: #FFFFFF;
    border: 1px solid var(--scout-sand);
    border-radius: 12px;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}


/* ----------------------------------------------------------
   7. Form Fields
   ---------------------------------------------------------- */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;

    margin-bottom: 9px;

    font-size: 13px;
    font-weight: 700;
}

.form-group input {
    display: block;

    width: 100%;
    min-height: 48px;
    padding: 12px 14px;

    background: #FFFFFF;
    color: var(--scout-coal);

    border: 1px solid #B8B8B8;
    border-radius: 6px;

    font-family: inherit;
    font-size: 15px;

    transition: border-color 0.2s ease;
}

.form-group input:focus {
    border-color: var(--scout-blue);
    outline: 2px solid var(--scout-blue);
    outline-offset: 2px;
}


/* ----------------------------------------------------------
   8. Submit Button
   ---------------------------------------------------------- */

.login-button {
    width: 100%;
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 6px;
    padding: 12px 18px;

    background: var(--scout-blue);
    color: var(--scout-pearl);

    border: 1px solid var(--scout-blue);
    border-radius: 6px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.login-button:hover {
    background: #1949D8;
    transform: translateY(-1px);
}

.login-button:focus-visible {
    outline: 3px solid var(--scout-blue);
    outline-offset: 3px;
}


/* ----------------------------------------------------------
   9. Error Messages
   ---------------------------------------------------------- */

.login-error {
    margin-bottom: 24px;
    padding: 14px 16px;

    background: #FFF1ED;
    color: var(--scout-coal);

    border-left: 4px solid #FE3000;
    border-radius: 4px;

    font-size: 13px;
    line-height: 1.5;
}


/* ----------------------------------------------------------
   10. Footer
   ---------------------------------------------------------- */

.login-footer {
    margin-top: 28px;
    text-align: center;
}

.login-footer p {
    margin: 5px 0;
    font-size: 12px;
    line-height: 1.5;
}


/* ----------------------------------------------------------
   11. Responsive
   ---------------------------------------------------------- */

@media (max-width: 600px) {

    .login-page {
        align-items: flex-start;
        padding: 60px 20px;
    }

    .login-card {
        padding: 26px 22px;
    }

    .login-icon {
        width: 60px;
        height: 60px;
    }

    .login-wordmark {
        font-size: 46px;
    }

    .login-intro h1 {
        font-size: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .login-button,
    .form-group input {
        transition: none;
    }
}
