/* =========================================================
   FOR YOU NEWS — AUTHENTICATION SYSTEM
   Professional Desktop + Mobile Styles
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    min-height: 100%;
}


body {
    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background: #f6f7f9;

    color: #1d2430;

    -webkit-font-smoothing: antialiased;
}


/* =========================================================
   AUTH PAGE
   ========================================================= */

.auth-page {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px 24px;

    background:
        radial-gradient(
            circle at top left,
            rgba(255, 210, 40, 0.08),
            transparent 35%
        ),
        #f6f7f9;
}


/* =========================================================
   AUTH CARD
   ========================================================= */

.auth-card {

    width: 100%;

    max-width: 480px;

    background: #ffffff;

    border: 1px solid #e8ebef;

    border-radius: 18px;

    padding: 42px;

    box-shadow:
        0 18px 50px rgba(20, 30, 45, 0.08);

}


/* =========================================================
   BRAND
   ========================================================= */

.auth-brand {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin-bottom: 34px;
}


.auth-brand a {

    display: flex;

    align-items: center;

    text-decoration: none;
}


.auth-brand img {

    width: 48px;

    height: 48px;

    object-fit: contain;

    display: block;
}


.auth-brand .brand-text {

    display: flex;

    flex-direction: column;

    justify-content: center;

    line-height: 1;
}


.auth-brand .brand-small {

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;

    color: #1d2430;
}


.auth-brand .shop-center {

    margin-top: 4px;

    font-size: 23px;

    font-weight: 800;

    letter-spacing: 1px;

    color: #c99d00;
}


/* =========================================================
   AUTH CONTENT
   ========================================================= */

.auth-content {

    width: 100%;
}


.auth-content h1 {

    margin-bottom: 12px;

    font-size: 30px;

    line-height: 1.2;

    font-weight: 750;

    letter-spacing: -0.5px;

    color: #161b22;

    text-align: center;
}


.auth-description {

    max-width: 390px;

    margin: 0 auto 28px;

    font-size: 15px;

    line-height: 1.65;

    color: #687180;

    text-align: center;
}


/* =========================================================
   MESSAGE
   ========================================================= */

.auth-message {

    width: 100%;

    margin-bottom: 20px;

    padding: 13px 15px;

    border-radius: 10px;

    font-size: 14px;

    line-height: 1.5;

    text-align: left;
}


.auth-message[hidden] {
    display: none;
}


.auth-message.error {

    background: #fff1f1;

    border: 1px solid #ffd5d5;

    color: #b42318;
}


.auth-message.success {

    background: #eefbf3;

    border: 1px solid #ccebd8;

    color: #18794e;
}


/* =========================================================
   FORM
   ========================================================= */

#forgot-password-form {

    width: 100%;
}


.form-group {

    margin-bottom: 22px;
}


.form-group label {

    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 650;

    color: #303844;
}


.form-group input {

    width: 100%;

    height: 52px;

    padding: 0 15px;

    border: 1px solid #d9dee6;

    border-radius: 10px;

    background: #ffffff;

    color: #1d2430;

    font-family: inherit;

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.form-group input::placeholder {

    color: #9aa2ae;
}


.form-group input:hover {

    border-color: #c5ccd6;
}


.form-group input:focus {

    border-color: #c99d00;

    box-shadow:
        0 0 0 3px rgba(201, 157, 0, 0.12);
}


/* =========================================================
   RESET BUTTON
   ========================================================= */

#reset-button {

    position: relative;

    width: 100%;

    min-height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    border: 0;

    border-radius: 10px;

    padding: 0 20px;

    background: #c99d00;

    color: #ffffff;

    font-family: inherit;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


#reset-button:hover {

    background: #b58c00;

    box-shadow:
        0 7px 18px rgba(181, 140, 0, 0.22);

    transform: translateY(-1px);
}


#reset-button:active {

    transform: translateY(0);
}


#reset-button:focus-visible {

    outline: 3px solid rgba(201, 157, 0, 0.25);

    outline-offset: 2px;
}


#reset-button:disabled {

    opacity: 0.65;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =========================================================
   AUTH LINKS
   ========================================================= */

.auth-links {

    display: flex;

    justify-content: center;

    margin-top: 24px;

    padding-top: 22px;

    border-top: 1px solid #edf0f3;
}


.auth-links a {

    display: inline-flex;

    align-items: center;

    color: #586273;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.2s ease;
}


.auth-links a:hover {

    color: #c99d00;

    text-decoration: underline;

    text-underline-offset: 3px;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 700px) {

    .auth-page {

        padding: 30px 18px;

        align-items: center;
    }


    .auth-card {

        max-width: 460px;

        padding: 34px 28px;

        border-radius: 16px;
    }


    .auth-brand {

        margin-bottom: 30px;
    }


    .auth-content h1 {

        font-size: 27px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .auth-page {

        min-height: 100vh;

        padding: 20px 14px;
    }


    .auth-card {

        padding: 30px 20px;

        border-radius: 14px;

        box-shadow:
            0 12px 35px rgba(20, 30, 45, 0.07);
    }


    .auth-brand {

        gap: 10px;

        margin-bottom: 27px;
    }


    .auth-brand img {

        width: 42px;

        height: 42px;
    }


    .auth-brand .brand-small {

        font-size: 9px;

        letter-spacing: 1.7px;
    }


    .auth-brand .shop-center {

        font-size: 20px;
    }


    .auth-content h1 {

        font-size: 24px;

        letter-spacing: -0.3px;
    }


    .auth-description {

        font-size: 14px;

        line-height: 1.6;

        margin-bottom: 24px;
    }


    .form-group {

        margin-bottom: 19px;
    }


    .form-group input {

        height: 50px;

        font-size: 15px;
    }


    #reset-button {

        min-height: 50px;

        font-size: 15px;
    }


    .auth-links {

        margin-top: 21px;

        padding-top: 19px;
    }


    .auth-links a {

        font-size: 13.5px;
    }

}


/* =========================================================
   VERY SMALL DEVICES
   ========================================================= */

@media (max-width: 360px) {

    .auth-page {

        padding: 15px 10px;
    }


    .auth-card {

        padding: 25px 16px;
    }


    .auth-content h1 {

        font-size: 22px;
    }


    .auth-description {

        font-size: 13.5px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;
    }

}