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

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


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


body {
    font-family: 'Plus Jakarta Sans', sans-serif;

    background: #eef7ff;

    color: #102f5c;

    overflow: hidden;
}



/* =====================================================
           MAIN LOGIN PAGE
        ===================================================== */

.login-page {

    width: 100%;

    min-height: 100vh;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    padding: 40px 6vw;

    background-image: url("/images/ride-login.jpeg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;
}



/* =====================================================
           BACKGROUND OVERLAY
        ===================================================== */

.page-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, 0.02) 0%,
            rgba(255, 255, 255, 0.01) 45%,
            rgba(255, 255, 255, 0.08) 100%);

    pointer-events: none;
}



/* =====================================================
           LOGIN CARD
        ===================================================== */

.login-card {

    position: relative;

    z-index: 5;

    width: 460px;

    min-height: 570px;

    padding: 46px 42px 38px;

    margin-right: 1.5vw;

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

    border: 1px solid rgba(255, 255, 255, 0.95);

    border-radius: 22px;

    box-shadow:
        0 25px 60px rgba(13, 66, 120, 0.18),
        0 8px 25px rgba(13, 66, 120, 0.10);

    backdrop-filter: blur(12px);

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

    animation: cardAppear 0.5s ease forwards;
}



@keyframes cardAppear {

    from {
        opacity: 0;

        transform: translateX(25px);
    }

    to {
        opacity: 1;

        transform: translateX(0);
    }

}



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

.admin-label {

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.8px;

    text-transform: uppercase;

    color: #147fe8;

    margin-bottom: 10px;
}


.login-card h1 {

    font-size: 32px;

    line-height: 1.2;

    font-weight: 800;

    letter-spacing: -0.8px;

    color: #102f5c;

    margin-bottom: 9px;
}


.login-subtitle {

    font-size: 13px;

    line-height: 1.5;

    color: #7184a0;

    margin-bottom: 34px;
}



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

.alert-error {

    display: flex;

    align-items: center;

    gap: 9px;

    width: 100%;

    padding: 11px 13px;

    margin-bottom: 20px;

    border-radius: 8px;

    background: #fff3f3;

    border: 1px solid #ffd4d4;

    color: #d93030;

    font-size: 11px;

    line-height: 1.4;
}


.alert-error svg {

    flex-shrink: 0;
}



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

.field-container {

    margin-bottom: 23px;
}


.field-label {

    display: block;

    font-size: 12px;

    font-weight: 700;

    color: #17365f;

    margin-bottom: 9px;
}



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

.input-wrapper {

    position: relative;

    width: 100%;
}


.input-icon {

    position: absolute;

    left: 15px;

    top: 50%;

    transform: translateY(-50%);

    color: #7890ad;

    display: flex;

    align-items: center;

    pointer-events: none;
}


.form-input {

    width: 100%;

    height: 52px;

    padding: 0 46px 0 43px;

    border: 1px solid #d8e2ed;

    border-radius: 9px;

    background: #ffffff;

    color: #102f5c;

    font-family: inherit;

    font-size: 13px;

    outline: none;

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


.form-input::placeholder {

    color: #9aaabd;
}


.form-input:focus {

    border-color: #1685ed;

    box-shadow:
        0 0 0 3px rgba(22, 133, 237, 0.10);
}



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

.password-toggle {

    position: absolute;

    right: 13px;

    top: 50%;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    color: #7289a4;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 4px;
}


.password-toggle:hover {

    color: #147fe8;
}



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

.form-options {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: -1px;

    margin-bottom: 23px;
}


.remember-option {

    display: flex;

    align-items: center;

    gap: 7px;

    color: #71839b;

    font-size: 11px;

    cursor: pointer;
}


.remember-option input {

    width: 14px;

    height: 14px;

    accent-color: #147fe8;

    cursor: pointer;
}


.forgot-link {

    color: #147fe8;

    font-size: 11px;

    font-weight: 600;

    text-decoration: none;
}


.forgot-link:hover {

    text-decoration: underline;
}



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

.login-btn {

    width: 100%;

    height: 52px;

    border: none;

    border-radius: 9px;

    background:
        linear-gradient(135deg,
            #1687ee 0%,
            #086bd4 100%);

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    box-shadow:
        0 8px 20px rgba(20, 127, 232, 0.25);

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


.login-btn:hover {

    transform: translateY(-1px);

    box-shadow:
        0 11px 25px rgba(20, 127, 232, 0.32);
}


.login-btn:active {

    transform: translateY(0);
}


.login-btn svg {

    transition: transform 0.2s ease;
}


.login-btn:hover svg {

    transform: translateX(3px);
}



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

.divider {

    display: flex;

    align-items: center;

    gap: 12px;

    margin: 25px 0 0;

    color: #9aaabd;

    font-size: 10px;
}


.divider::before,
.divider::after {

    content: "";

    flex: 1;

    height: 1px;

    background: #e3eaf2;
}



/* =====================================================
           BACK TO WEBSITE
        ===================================================== */

.back-link {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    margin-top: 14px;

    color: #183d68;

    font-size: 11px;

    font-weight: 600;

    text-decoration: none;
}


.back-link:hover {

    color: #147fe8;
}



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

@media (max-width: 1100px) {

    .login-page {

        padding-right: 4vw;

        background-position: center;
    }


    .login-card {

        width: 440px;

        margin-right: 1vw;
    }

}



@media (max-width: 850px) {

    body {

        overflow-y: auto;
    }


    .login-page {

        min-height: 100vh;

        padding: 30px 20px;

        justify-content: center;

        background-position: center;
    }


    .login-card {

        width: 440px;

        max-width: 100%;

        margin-right: 0;
    }

}



@media (max-width: 550px) {

    .login-page {

        padding: 20px 15px;

        background-position: center;
    }


    .login-card {

        width: 100%;

        min-height: auto;

        padding: 34px 25px 30px;

        border-radius: 18px;
    }


    .login-card h1 {

        font-size: 27px;
    }


    .login-subtitle {

        font-size: 12px;

        margin-bottom: 30px;
    }

}



@media (max-width: 400px) {

    .login-page {

        padding: 12px;
    }


    .login-card {

        padding: 29px 20px 25px;
    }


    .login-card h1 {

        font-size: 24px;
    }


    .form-input {

        height: 47px;
    }


    .login-btn {

        height: 47px;
    }

}