/* ============================================================
   GLOBAL
============================================================ */

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

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

body {
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;

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

    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #023e8a,
            #0077b6
        );
}


/* ============================================================
   BACKGROUND VIDEO
============================================================ */

#bg-video {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: -3;
}


/* ============================================================
   VIDEO OVERLAY
============================================================ */

.video-overlay {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            135deg,
            rgba(2, 62, 138, 0.82),
            rgba(0, 119, 182, 0.60)
        );

    z-index: -2;
}


/* ============================================================
   OPTIONAL VIDEO FALLBACK
============================================================ */

.video-fallback {
    background:
        linear-gradient(
            135deg,
            #023e8a,
            #0077b6
        );
}


/* ============================================================
   LOGIN WRAPPER
============================================================ */

.login-wrapper {
    width: 100%;
    max-width: 470px;

    padding: 20px;

    position: relative;
    z-index: 5;
}


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

.login-card {
    width: 100%;

    padding: 38px 40px 30px;

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

    border-radius: 22px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35);

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

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

    animation:
        loginAppear 0.8s ease forwards;
}



/* ============================================================
   CARD ANIMATION
============================================================ */

@keyframes loginAppear {

    from {
        opacity: 0;
        transform: translateY(35px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* ============================================================
   LOGO
============================================================ */

.logo-area {
    text-align: center;
    margin-bottom: 28px;
}


.logo-circle {
    width: 68px;
    height: 68px;

    margin: 0 auto 14px;

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

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #0077b6,
            #023e8a
        );

    color: white;

    font-size: 28px;

    box-shadow:
        0 10px 25px rgba(0, 119, 182, 0.35);
}


.logo-area h2 {
    margin: 0;

    color: #023e8a;

    font-size: 25px;

    font-weight: 700;

    letter-spacing: -0.5px;
}


.logo-area p {
    margin-top: 5px;

    margin-bottom: 0;

    color: #777;

    font-size: 13px;
}


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

.login-header {
    text-align: center;

    margin-bottom: 25px;
}


.login-header h3 {
    color: #1d3557;

    font-size: 22px;

    font-weight: 700;

    margin-bottom: 5px;
}


.login-header span {
    color: #7b8794;

    font-size: 13px;
}


/* ============================================================
   ALERT
============================================================ */

.login-alert {
    border: none;

    border-radius: 10px;

    font-size: 13px;

    padding: 11px 14px;

    margin-bottom: 20px;
}


.login-alert i {
    margin-right: 6px;
}


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

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


.form-group label {
    display: block;

    color: #34495e;

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 8px;
}


.form-group label i {
    color: #0077b6;

    margin-right: 5px;
}


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

.input-wrapper {
    position: relative;

    width: 100%;
}


.input-icon {
    position: absolute;

    left: 15px;

    top: 50%;

    transform: translateY(-50%);

    color: #8a9bad;

    font-size: 14px;

    z-index: 3;

    pointer-events: none;
}


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

.custom-input {
    height: 48px;

    border: 1px solid #dce3ea;

    border-radius: 10px !important;

    background: #f8fafc;

    padding-left: 43px;
    padding-right: 45px;

    font-size: 14px;

    color: #263238;

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


.custom-input::placeholder {
    color: #a3adb8;
}


.custom-input:hover {
    border-color: #b9c8d6;

    background: #ffffff;
}


.custom-input:focus {
    border-color: #0077b6;

    background: #ffffff;

    outline: none;

    box-shadow:
        0 0 0 3px rgba(0, 119, 182, 0.12);
}


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

.password-toggle {
    position: absolute;

    right: 15px;

    top: 50%;

    transform: translateY(-50%);

    color: #8a9bad;

    cursor: pointer;

    z-index: 5;

    transition: color 0.2s ease;
}


.password-toggle:hover {
    color: #0077b6;
}


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

.forgot-password {
    text-align: right;

    margin-top: -5px;

    margin-bottom: 22px;
}


.forgot-password a {
    color: #0077b6;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition: color 0.2s ease;
}


.forgot-password a:hover {
    color: #023e8a;

    text-decoration: none;
}


.forgot-password i {
    margin-right: 4px;
}


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

.login-btn {
    height: 49px;

    border: none;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #0077b6,
            #023e8a
        );

    color: #ffffff;

    font-size: 15px;

    font-weight: 600;

    letter-spacing: 0.2px;

    box-shadow:
        0 8px 20px rgba(0, 119, 182, 0.28);

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


.login-btn:hover {
    color: white;

    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(0, 119, 182, 0.38);
}


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


.login-btn:disabled {
    cursor: not-allowed;

    opacity: 0.8;

    transform: none;
}


.login-btn i {
    margin-right: 7px;
}


/* ============================================================
   LOADING
============================================================ */

#loadingSpinner {
    display: none;

    align-items: center;

    justify-content: center;

    gap: 8px;
}


#loadingSpinner .spinner-border {
    display: inline-block;
}


/* ============================================================
   FOOTER
============================================================ */

.login-footer {
    text-align: center;

    margin-top: 27px;
}


.footer-line {
    width: 45px;

    height: 3px;

    margin: 0 auto 13px;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #0077b6,
            #023e8a
        );
}


.login-footer p {
    color: #718096;

    font-size: 11px;

    margin-bottom: 5px;
}


.login-footer p i {
    color: #0077b6;

    margin-right: 4px;
}


.login-footer small {
    color: #9aa5b1;

    font-size: 10px;
}


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

@media (max-width: 576px) {

    .login-wrapper {
        padding: 18px;
    }


    .login-card {
        padding: 30px 24px 25px;

        border-radius: 18px;
    }


    .logo-circle {
        width: 60px;
        height: 60px;

        font-size: 24px;
    }


    .logo-area h2 {
        font-size: 22px;
    }


    .login-header h3 {
        font-size: 20px;
    }


    .custom-input {
        height: 46px;
    }


    .login-btn {
        height: 47px;
    }

}


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

@media (max-height: 650px) {

    .login-card {
        padding-top: 22px;
        padding-bottom: 20px;
    }


    .logo-area {
        margin-bottom: 18px;
    }


    .logo-circle {
        width: 50px;
        height: 50px;

        font-size: 20px;

        margin-bottom: 8px;
    }


    .login-header {
        margin-bottom: 18px;
    }


    .form-group {
        margin-bottom: 14px;
    }


    .login-footer {
        margin-top: 18px;
    }

}


