/* =========================================================
   AUTHENTICATION PAGE
   Login / Register / Forgot Password / Reset Password
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   BODY
========================================================= */

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;

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

    min-height: 100vh;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)
        ),
        url("../img/image.png");

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


/* =========================================================
   MAIN AUTH CONTAINER
========================================================= */

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

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

    padding: 30px 20px;
}


/* =========================================================
   AUTH CARD
========================================================= */

.auth-card {
    width: 100%;
    max-width: 430px;

    background: #ffffff;

    padding: 40px;

    border-radius: 12px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   AUTH HEADER
========================================================= */

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    margin: 0 0 8px 0;

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

    font-weight: 600;

    color: #222;
}

.auth-header p {
    margin: 0;

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

    color: #777;
}


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

#login-form,
#register-form,
#forgot-form,
#reset-form {
    width: 100%;
}


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

.form-group {
    width: 100%;
    margin-bottom: 20px;
}


/* =========================================================
   LABEL
========================================================= */

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 600;

    color: #333;
}


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

.form-group input {
    display: block;

    width: 100%;

    height: 46px;

    padding: 0 14px;

    border: 1px solid #d9dce3;
    border-radius: 7px;

    outline: none;

    background: #ffffff;

    color: #222;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


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

.form-group input::placeholder {
    color: #999;
}


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

.form-group input:focus {
    border-color: #555;

    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.05);
}


/* =========================================================
   LOGIN OPTIONS
========================================================= */

.form-options {
    width: 100%;

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

    margin-bottom: 25px;

    font-size: 13px;
}


/* =========================================================
   REMEMBER ME
========================================================= */

.remember {
    display: flex;
    align-items: center;

    gap: 6px;

    color: #555;

    cursor: pointer;
}

.remember input {
    width: auto;
    height: auto;

    margin: 0;

    cursor: pointer;
}


/* =========================================================
   FORGOT PASSWORD LINK
========================================================= */

.form-options a {
    color: #555;

    text-decoration: none;

    transition: color 0.2s ease;
}

.form-options a:hover {
    color: #000;

    text-decoration: underline;
}


/* =========================================================
   AUTH BUTTON
========================================================= */

.auth-btn {
    display: block;

    width: 100%;

    height: 46px;

    padding: 0 15px;

    border: none;
    border-radius: 7px;

    background: #222;

    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.1s ease;
}


/* =========================================================
   BUTTON HOVER
========================================================= */

.auth-btn:hover {
    background: #000;
}


/* =========================================================
   BUTTON ACTIVE
========================================================= */

.auth-btn:active {
    transform: scale(0.98);
}


/* =========================================================
   DISABLED BUTTON
========================================================= */

.auth-btn:disabled {
    background: #999;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   LOGIN / REGISTER SWITCH
========================================================= */

.switch-auth {
    width: 100%;

    text-align: center;

    margin-top: 25px;

    font-size: 14px;

    color: #666;

    line-height: 1.6;
}


/* =========================================================
   SWITCH LINK
========================================================= */

.switch-auth a {
    color: #222;

    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}

.switch-auth a:hover {
    color: #000;

    text-decoration: underline;
}


/* =========================================================
   AUTH MESSAGE
========================================================= */

.auth-message {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 20px 0;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

/* Error message */

.auth-message.error {
    background: #fff1f2;
    color: #b42318;
    border-color: #fecdd3;
}

/* Success message */

.auth-message.success {
    background: #ecfdf3;
    color: #067647;
    border-color: #abefc6;
}

/* =========================================================
   LOGIN SECTION
========================================================= */

#login-section {
    width: 100%;
}


/* =========================================================
   REGISTER SECTION
========================================================= */

#register-section {
    width: 100%;
}

#register-section .auth-header {
    margin-bottom: 25px;
}


/* =========================================================
   FORGOT PASSWORD SECTION
========================================================= */

#forgot-section {
    width: 100%;
}

#forgot-section .auth-header {
    margin-bottom: 25px;
}


/* =========================================================
   RESET PASSWORD SECTION
========================================================= */

#reset-section {
    width: 100%;
}

#reset-section .auth-header {
    margin-bottom: 25px;
}


/* =========================================================
   RESET TOKEN
========================================================= */

#reset-token {
    display: none;
}


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

.form-error {
    margin-top: 6px;

    font-size: 13px;

    color: #d93025;
}


/* =========================================================
   SUCCESS MESSAGE
========================================================= */

.form-success {
    margin-bottom: 20px;

    padding: 10px 12px;

    border-radius: 6px;

    background: #f0fdf4;

    color: #166534;

    font-size: 13px;

    line-height: 1.5;
}


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

.form-error-message {
    margin-bottom: 20px;

    padding: 10px 12px;

    border-radius: 6px;

    background: #fef2f2;

    color: #b91c1c;

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================================
   AUTOFILL
========================================================= */

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: #222;

    transition:
        background-color 5000s ease-in-out 0s;
}


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

@media (max-width: 480px) {

    .auth-container {
        padding: 20px 15px;
    }

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

        padding: 30px 22px;

        border-radius: 10px;
    }

    .auth-header {
        margin-bottom: 25px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .auth-header p {
        font-size: 13px;
    }

    .form-options {
        flex-direction: column;

        align-items: flex-start;

        gap: 10px;
    }

    .form-group input {
        height: 44px;

        padding: 0 12px;

        font-size: 14px;
    }

    .auth-btn {
        height: 44px;

        font-size: 15px;
    }
}


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

@media (max-width: 350px) {

    .auth-container {
        padding: 15px 10px;
    }

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

    .auth-header h1 {
        font-size: 22px;
    }

    .auth-header p {
        font-size: 12px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input {
        height: 42px;

        font-size: 14px;
    }

    .auth-btn {
        height: 42px;

        font-size: 14px;
    }

    .switch-auth {
        font-size: 13px;
    }
}