/* ================================
   LOGIN / AUTH PAGE
================================ */

.auth-navbar {

    height: 75px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 7%;

    border-bottom: 1px solid var(--border);

    background: var(--card);
}


.auth-logo {

    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--text);

    font-size: 16px;

    font-weight: 700;
}


.auth-logo img {

    width: 38px;

    height: 38px;

    object-fit: contain;
}


.auth-nav-right {

    display: flex;

    align-items: center;

    gap: 20px;
}


.auth-nav-right a {

    color: var(--text-secondary);

    font-size: 12px;

    font-weight: 600;
}


.auth-nav-right a:hover {

    color: var(--primary);
}


/* ================================
   MAIN
================================ */

.auth-main {

    min-height: calc(100vh - 125px);

    display: flex;

    align-items: center;

    padding: 70px 0;

    background: var(--background);
}


.auth-container {

    width: 86%;

    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 420px;

    gap: 80px;

    align-items: center;
}


/* ================================
   INTRO
================================ */

.auth-intro {

    max-width: 560px;
}


.auth-badge {

    display: inline-block;

    padding: 8px 14px;

    border-radius: 30px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 10px;

    font-weight: 700;

    margin-bottom: 22px;
}


.auth-intro h1 {

    margin: 0 0 20px;

    color: var(--text);

    font-size: clamp(42px, 5vw, 64px);

    line-height: 1.05;

    letter-spacing: -2px;
}


.auth-intro h1 span {

    display: block;

    color: var(--primary);
}


.auth-intro > p {

    max-width: 500px;

    color: var(--text-secondary);

    font-size: 14px;

    line-height: 1.7;

    margin-bottom: 35px;
}


/* ================================
   FEATURES
================================ */

.auth-features {

    display: flex;

    flex-direction: column;

    gap: 20px;
}


.auth-feature {

    display: flex;

    align-items: center;

    gap: 14px;
}


.feature-icon {

    width: 40px;

    height: 40px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background: var(--primary-light);

    color: var(--primary);

    font-weight: 700;
}


.auth-feature strong {

    display: block;

    margin-bottom: 3px;

    color: var(--text);

    font-size: 12px;
}


.auth-feature p {

    color: var(--text-muted);

    font-size: 10px;
}


/* ================================
   CARD
================================ */

.auth-card {

    padding: 35px;

    border: 1px solid var(--border);

    border-radius: 20px;

    background: var(--card);

    box-shadow: var(--shadow);
}


.auth-card-header {

    text-align: center;

    margin-bottom: 28px;
}


.auth-card-header h2 {

    color: var(--text);

    font-size: 25px;

    margin-bottom: 8px;
}


.auth-card-header p {

    color: var(--text-secondary);

    font-size: 11px;
}


/* ================================
   FORM
================================ */

#loginForm {

    display: flex;

    flex-direction: column;

    gap: 18px;
}


.form-group {

    display: flex;

    flex-direction: column;

    gap: 7px;
}


.form-group label {

    color: var(--text);

    font-size: 11px;

    font-weight: 600;
}


.form-group input {

    width: 100%;

    height: 46px;

    padding: 0 13px;

    border: 1px solid var(--border);

    border-radius: 8px;

    outline: none;

    background: var(--surface);

    color: var(--text);

    font-size: 12px;
}


.form-group input:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(23, 105, 224, 0.1);
}


.form-group input::placeholder {

    color: var(--text-muted);
}


/* ================================
   PASSWORD
================================ */

.password-header {

    display: flex;

    justify-content: space-between;

    align-items: center;
}


.password-header a {

    color: var(--primary);

    font-size: 9px;
}


.password-box {

    position: relative;

    width: 100%;
}


.password-box input {

    padding-right: 55px;
}


/* PASSWORD EYE BUTTON */

#showPassword {

    position: absolute;

    right: 9px;

    top: 50%;

    transform: translateY(-50%);

    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    border-radius: 6px;

    background: transparent;

    color: var(--text-secondary);

    cursor: pointer;

    padding: 0;

    transition: color 0.2s ease;
}


#showPassword:hover {

    color: var(--primary);
}


#showPassword:focus {

    outline: none;
}


.eye-icon {

    width: 18px;

    height: 18px;

    display: block;
}


/*
   IMPORTANT:

   Password starts hidden.
   Therefore eye-slash is visible
   and open eye is hidden.
*/

.eye-open {

    display: none;
}


.eye-closed {

    display: block;
}


.form-group small {

    min-height: 12px;

    color: #e05252;

    font-size: 9px;
}


/* ================================
   REMEMBER
================================ */

.remember {

    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--text-secondary);

    font-size: 10px;

    cursor: pointer;
}


.remember input {

    accent-color: var(--primary);
}


/* ================================
   BUTTON
================================ */

.auth-button {

    width: 100%;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    border: none;

    border-radius: 8px;

    background: var(--primary);

    color: white;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.3s;
}


.auth-button:hover {

    background: var(--primary-dark);

    transform: translateY(-2px);
}


#loginMessage {

    min-height: 15px;

    text-align: center;

    color: var(--primary);

    font-size: 10px;
}


/* ================================
   REGISTER LINK
================================ */

.auth-switch {

    margin-top: 23px;

    text-align: center;

    color: var(--text-secondary);

    font-size: 10px;
}


.auth-switch a {

    color: var(--primary);

    font-weight: 700;
}


/* ================================
   DIVIDER
================================ */

.auth-divider {

    display: flex;

    align-items: center;

    gap: 10px;

    margin: 22px 0;

    color: var(--text-muted);

    font-size: 9px;
}


.auth-divider::before,
.auth-divider::after {

    content: "";

    flex: 1;

    height: 1px;

    background: var(--border);
}


/* ================================
   HOME
================================ */

.back-home {

    display: block;

    text-align: center;

    padding: 12px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: var(--surface);

    color: var(--text-secondary);

    font-size: 10px;
}


.back-home:hover {

    color: var(--primary);

    border-color: var(--primary);
}


/* ================================
   FOOTER
================================ */

.auth-footer {

    padding: 20px;

    text-align: center;

    border-top: 1px solid var(--border);

    background: var(--card);

    color: var(--text-muted);

    font-size: 9px;
}


/* ================================
   TABLET
================================ */

@media (max-width: 900px) {

    .auth-container {

        grid-template-columns: 1fr;

        max-width: 600px;

        gap: 45px;
    }


    .auth-intro {

        max-width: 600px;

        text-align: center;

        margin: auto;
    }


    .auth-intro > p {

        margin-left: auto;

        margin-right: auto;
    }


    .auth-features {

        max-width: 400px;

        margin: auto;

        text-align: left;
    }

}


/* ================================
   MOBILE
================================ */

@media (max-width: 600px) {

    .auth-navbar {

        padding: 0 5%;
    }


    .auth-nav-right > a {

        display: none;
    }


    .auth-main {

        padding: 45px 0 60px;
    }


    .auth-container {

        width: 90%;

        gap: 35px;
    }


    .auth-intro h1 {

        font-size: 40px;
    }


    .auth-intro > p {

        font-size: 13px;
    }


    .auth-card {

        padding: 25px 20px;

        border-radius: 16px;
    }

}


/* ================================
   SMALL MOBILE
================================ */

@media (max-width: 380px) {

    .auth-intro h1 {

        font-size: 35px;
    }


    .auth-card {

        padding: 22px 17px;
    }

}
/* ================================
   LOGIN PAGE DARK MODE
================================ */

html.dark-mode,
body.dark-mode {

    background: var(--background);

    color: var(--text);

}


body.dark-mode .auth-navbar {

    background: var(--card);

    border-bottom-color: var(--border);

}


body.dark-mode .auth-logo {

    color: var(--text);

}


body.dark-mode .auth-main {

    background: var(--background);

}


body.dark-mode .auth-intro h1 {

    color: var(--text);

}


body.dark-mode .auth-intro > p,
body.dark-mode .auth-feature p {

    color: var(--text-secondary);

}


body.dark-mode .auth-feature strong {

    color: var(--text);

}


body.dark-mode .auth-card {

    background: var(--card);

    border-color: var(--border);

    box-shadow: var(--shadow);

}


body.dark-mode .auth-card-header h2 {

    color: var(--text);

}


body.dark-mode .auth-card-header p {

    color: var(--text-secondary);

}


body.dark-mode .form-group label {

    color: var(--text);

}


body.dark-mode .form-group input {

    background: var(--surface);

    color: var(--text);

    border-color: var(--border);

}


body.dark-mode .form-group input::placeholder {

    color: var(--text-muted);

}


body.dark-mode .remember {

    color: var(--text-secondary);

}


body.dark-mode .auth-switch,
body.dark-mode .auth-divider {

    color: var(--text-secondary);

}


body.dark-mode .back-home {

    background: var(--surface);

    color: var(--text-secondary);

    border-color: var(--border);

}


body.dark-mode .auth-footer {

    background: var(--card);

    color: var(--text-muted);

    border-top-color: var(--border);

}