/* =========================================================
   ForYOU NEWS — Authentication
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: #f5f6f8;
    color: #17191c;
}


/* =========================================================
   PAGE
   ========================================================= */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}


/* =========================================================
   CARD
   ========================================================= */

.auth-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}


/* =========================================================
   BRAND
   ========================================================= */

.auth-brand {
    text-align: center;
    padding: 34px 30px 26px;
    border-bottom: 1px solid #eeeeee;
}



.auth-brand h1 {
    margin: 0;

    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.auth-brand p {
    margin: 7px 0 0;
    padding-left: 50%;

    color: #74777c;
    font-size: 14px;

}
.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;
}


/* =========================================================
   CONTENT
   ========================================================= */

.auth-content {
    padding: 30px;
}

.auth-content h2 {
    margin: 0;

    font-size: 25px;
    font-weight: 750;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    margin: 8px 0 25px;

    color: #74777c;
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   FORM
   ========================================================= */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 650;
}

.password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.password-label-row label {
    margin-bottom: 8px;
}

.forgot-link {
    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 600;
    color: #555b63;

    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}


/* =========================================================
   INPUTS
   ========================================================= */

.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    border: 1px solid #d9dce1;
    border-radius: 9px;

    background: #ffffff;

    color: #17191c;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input:focus {
    border-color: #222222;

    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.06);
}

.form-group input::placeholder {
    color: #a0a4aa;
}


/* =========================================================
   PASSWORD
   ========================================================= */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 72px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;

    transform: translateY(-50%);

    border: 0;
    background: transparent;

    color: #555b63;

    font-size: 13px;
    font-weight: 650;

    cursor: pointer;
}

.password-toggle:hover {
    color: #111111;
}


/* =========================================================
   REMEMBER ME
   ========================================================= */

.remember-row {
    margin-top: -4px;
    margin-bottom: 20px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #555b63;
    font-size: 13px;

    cursor: pointer;
}

.checkbox-label input {
    width: 15px;
    height: 15px;

    margin: 0;

    cursor: pointer;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.auth-button {
    width: 100%;
    height: 48px;

    border: 0;
    border-radius: 9px;

    background: #111111;
    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    transition:
        background 0.2s ease,
        transform 0.1s ease;
}

.auth-button:hover {
    background: #2b2b2b;
}

.auth-button:active {
    transform: scale(0.99);
}

.auth-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}


/* =========================================================
   SPINNER
   ========================================================= */

.spinner {
    width: 17px;
    height: 17px;

    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;

    border-radius: 50%;

    animation: auth-spin 0.7s linear infinite;
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   DIVIDER
   ========================================================= */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 25px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";

    flex: 1;
    height: 1px;

    background: #e8e9eb;
}

.auth-divider span {
    color: #999da3;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   GOOGLE BUTTON
   ========================================================= */

.google-button {
    width: 100%;
    height: 48px;

    border: 1px solid #d9dce1;
    border-radius: 9px;

    background: #ffffff;
    color: #222222;

    font-size: 14px;
    font-weight: 650;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.google-button:hover {
    background: #f7f7f7;
    border-color: #c7c9cd;
}

.google-icon {
    font-size: 17px;
    font-weight: 800;
}


/* =========================================================
   STATUS MESSAGE
   ========================================================= */

.auth-message {
    margin-bottom: 20px;
    padding: 12px 13px;

    border-radius: 8px;

    font-size: 13px;
    line-height: 1.5;
}

.auth-message.error {
    background: #fff1f1;
    border: 1px solid #ffd5d5;
    color: #a32626;
}

.auth-message.success {
    background: #effaf2;
    border: 1px solid #d1f0d8;
    color: #236b35;
}


/* =========================================================
   FOOTER
   ========================================================= */

.auth-footer {
    margin: 25px 0 0;

    text-align: center;

    color: #74777c;
    font-size: 14px;
}

.auth-footer a {
    color: #111111;
    font-weight: 700;

    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .auth-page {
        padding: 20px 14px;
    }

    .auth-card {
        border-radius: 14px;
    }

    .auth-brand {
        padding: 28px 22px 22px;
    }

    .auth-content {
        padding: 25px 20px;
    }

    .auth-content h2 {
        font-size: 23px;
    }
}