/* =========================================================
   GOONET AUTH
   Login / Register
   ========================================================= */

.auth-page {
    min-height: 100vh;
    margin: 0;
    padding: 0;

    background-image:
        linear-gradient(
            rgba(4, 35, 27, 0.08),
            rgba(4, 35, 27, 0.08)
        ),
        url("../images/background-auth.png");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: #17252b;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.auth-page .auth-container {
    width: 100%;
    min-height: 100vh;

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

    padding: 40px 30px;
}


/* =========================================================
   GLASS CARD
   ========================================================= */

.auth-page .auth-card {
    width: min(780px, 100%);

    padding: 32px 25px 42px;

    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.58),
            rgba(255, 255, 255, 0.28)
        );

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);

    position: relative;

    overflow: hidden;
}


/*
 * Ðý?ng sáng nh? bên trái c?a card.
 */
.auth-page .auth-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 1px;
    height: 100%;

    background: rgba(255, 255, 255, 0.75);
}


/* =========================================================
   BRAND / TITLE
   ========================================================= */

.auth-page .auth-brand {
    text-align: center;

    margin: 0 auto 34px;

    position: relative;
    z-index: 2;
}


.auth-page .auth-brand .logo {
    display: inline-block;

    margin-bottom: 12px;

    text-decoration: none;

    color: #14242b;

    font-size: 17px;
    font-weight: 800;

    letter-spacing: 3px;

    text-transform: uppercase;
}


.auth-page .auth-brand h1 {
    margin: 0;

    color: #15242a;

    font-size: 38px;
    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -0.5px;
}


.auth-page .auth-brand p {
    margin: 12px 0 0;

    color: #36474e;

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


/* =========================================================
   FORM
   ========================================================= */

.auth-page #login-form {
    position: relative;
    z-index: 2;
}


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


.auth-page .form-group label {
    display: none;

    margin: 0 0 9px;

    color: #111d22;

    font-size: 16px;
    line-height: 1.4;

    font-weight: 500;
}


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


/* =========================================================
   INPUT
   ========================================================= */

.auth-page .form-group input {
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 20px;
    border: 1px solid rgba(95, 95, 95, 0.30);
    border-radius: 12px;
    outline: none;
    background: rgba(255, 255, 255, 0.43);
    color: #1b282d;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}


.auth-page .form-group input::placeholder {
    color: #6d7477;
    opacity: 1;
}


.auth-page .form-group input:hover {
    background: rgba(255, 255, 255, 0.54);
}


.auth-page .form-group input:focus {
    border-color: #247d5a;

    background: rgba(255, 255, 255, 0.67);

    box-shadow:
        0 0 0 3px rgba(36, 125, 90, 0.13);
}


/* =========================================================
   INPUT ICON
   ========================================================= */

.auth-page .input-icon {
    position: absolute;

    left: 20px;
    top: 50%;

    width: 22px;
    height: 22px;

    transform: translateY(-50%);

    color: #596469;

    pointer-events: none;
}


.auth-page .input-with-icon {
    padding-left: 56px !important;
}


/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

.auth-page .password-toggle {
    position: absolute;

    top: 50%;
    right: 18px;

    width: 40px;
    height: 40px;

    transform: translateY(-50%);

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

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: #5c666a;

    cursor: pointer;

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


.auth-page .password-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #216f51;
}


.auth-page .password-toggle svg {
    width: 22px;
    height: 22px;
}


/* =========================================================
   ERROR
   ========================================================= */

.auth-page .field-error {
    display: none;

    align-items: center;
    gap: 6px;

    margin-top: 7px;

    color: #c62828;

    font-size: 14px;
    line-height: 1.4;

    font-weight: 500;
}


.auth-page .field-error.show {
    display: flex;
}


.auth-page .error-icon {
    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    color: #c62828;
}


.auth-page .form-group input.input-error {
    border-color: #d23b3b;

    background: rgba(255, 245, 245, 0.60);

    box-shadow:
        0 0 0 2px rgba(210, 59, 59, 0.08);
}


/* =========================================================
   REMEMBER + FORGOT PASSWORD
   ========================================================= */

.auth-page .auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 2px 0 24px;

    font-size: 15px;
}


.auth-page .remember-login {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #25353a;

    cursor: pointer;
    user-select: none;
}


.auth-page .remember-login input {
    width: 18px !important;
    height: 18px !important;

    margin: 0 !important;
    padding: 0 !important;

    accent-color: #247d5a;

    cursor: pointer;

    box-shadow: none !important;
}


.auth-page .forgot-password {
    color: #18704f;

    text-decoration: none;

    font-weight: 600;

    transition: color 0.2s ease;
}


.auth-page .forgot-password:hover {
    color: #0e4e38;
    text-decoration: underline;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.auth-page .btn-login {
    width: 100%;
    height: 64px;

    border: 0;
    border-radius: 12px;

    background:linear-gradient(139deg, #55d6dc, #4CAF50);

    color: #ffffff;

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

    cursor: pointer;

    box-shadow:
        0 8px 22px rgba(23, 107, 74, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}


.auth-page .btn-login:hover {
    transform: translateY(-1px);

    filter: brightness(1.04);

    box-shadow:
        0 11px 26px rgba(23, 107, 74, 0.28);
}


.auth-page .btn-login:active {
    transform: translateY(0);

    box-shadow:
        0 5px 14px rgba(23, 107, 74, 0.20);
}


/* =========================================================
   DIVIDER
   ========================================================= */

.auth-page .auth-divider {
    display: flex;
    align-items: center;

    gap: 18px;

    margin: 32px 0 27px;

    color: #536166;

    font-size: 15px;
}


.auth-page .auth-divider::before,
.auth-page .auth-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: rgba(70, 80, 80, 0.32);
}


/* =========================================================
   REGISTER LINK
   ========================================================= */

.auth-page .auth-register {
    text-align: center;

    color: #26373c;

    font-size: 16px;
}


.auth-page .auth-register span {
    margin-right: 7px;
}


.auth-page .auth-register a {
    color: #176e4d;

    text-decoration: none;

    font-weight: 700;
}


.auth-page .auth-register a:hover {
    text-decoration: underline;
}


/* =========================================================
   SECURITY NOTE
   ========================================================= */

.auth-page .auth-security {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 32px;
    padding-top: 25px;

    border-top: 1px solid rgba(80, 90, 90, 0.25);

    color: #304147;

    font-size: 15px;
    line-height: 1.5;

    text-align: center;
}


.auth-page .auth-security svg {
    width: 22px;
    height: 22px;

    flex: 0 0 22px;

    color: #286d54;
}


/* =========================================================
   SERVER ERROR
   ========================================================= */

.auth-page .login-error {
    margin-bottom: 20px;
    padding: 12px 15px;

    border: 1px solid rgba(198, 40, 40, 0.18);
    border-radius: 10px;

    background: rgba(255, 240, 240, 0.70);

    color: #c62828;

    font-size: 14px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .auth-page {
        /*background-attachment: scroll;*/
        padding-top:220px;
        background-position: top center;
    }


    .auth-page .auth-container {
        min-height: 100vh;

        padding: 20px 14px;
    }


    .auth-page .auth-card {
        width: 100%;

        padding: 35px 24px 30px;

        border-radius: 20px;

        background:
            linear-gradient(
                135deg,
                rgba(255, 255, 255, 0.68),
                rgba(255, 255, 255, 0.40)
            );

        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        background-size: 100% 100%;
    }


    .auth-page .auth-card::before {
        display: none;
    }


    .auth-page .auth-brand {
        margin-bottom: 28px;
    }


    .auth-page .auth-brand .logo {
        font-size: 15px;
        display: none;
        letter-spacing: 2.5px;
    }


    .auth-page .auth-brand h1 {
        font-size: 20px;
    }


    .auth-page .auth-brand p {
        margin-top: 5px;

        font-size: 13px;
    }


    .auth-page .form-group {
        margin-bottom: 10px;
    }


    .auth-page .form-group label {
        font-size: 15px;
    }


    .auth-page .form-group input {
        height: 50px;

        font-size: 14px;
    }


    .auth-page .btn-login {
        height: 50px;

        font-size: 17px;
    }


    .auth-page .auth-options {
        font-size: 14px;
    }


    .auth-page .auth-security {
        font-size: 13px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {

    .auth-page .auth-container {
        padding: 12px 10px;
    }


    .auth-page .auth-card {
        padding: 28px 18px 25px;
    }


    .auth-page .auth-brand h1 {
        font-size: 27px;
    }


    .auth-page .auth-brand p {
        font-size: 14px;
    }


    .auth-page .auth-options {
        flex-wrap: wrap;
        gap: 10px;
    }
}

