﻿/* =========================================
   LOGIN PAGE
========================================= */

body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", sans-serif;
    background: linear-gradient(135deg,#001f3f,#004aad,#0088cc);
    overflow: hidden;
}

.login-page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    animation: float 8s infinite ease-in-out;
}

    .bg-circle:nth-child(1) {
        width: 220px;
        height: 220px;
        top: 8%;
        left: 10%;
    }

    .bg-circle:nth-child(2) {
        width: 300px;
        height: 300px;
        bottom: 5%;
        right: 10%;
        animation-duration: 10s;
    }

    .bg-circle:nth-child(3) {
        width: 140px;
        height: 140px;
        top: 55%;
        left: 22%;
        animation-duration: 6s;
    }

@keyframes float {

    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-25px);
    }

    100% {
        transform: translateY(0px);
    }
}

.login-box {
    width: 420px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.35);
    color: white;
    position: relative;
    z-index: 10;
}

.logo-area {
    text-align: center;
    margin-bottom: 25px;
}

.logo-icon {
    width: 90px;
    height: 90px;
    margin: auto;
    border-radius: 50%;
    background: white;
    color: #004aad;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 42px;
    box-shadow: 0 0 25px rgba(255,255,255,0.4);
}

.login-title {
    text-align: center;
    margin-top: 18px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
}

.login-subtitle {
    text-align: center;
    font-size: 14px;
    color: #d8e6ff;
    margin-bottom: 35px;
}

.input-group {
    margin-bottom: 22px;
}

    .input-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 600;
    }

.input-box {
    position: relative;
}

    .input-box i {
        position: absolute;
        left: 14px;
        top: 15px;
        color: #004aad;
        font-size: 15px;
    }

.form-control {
    width: 100%;
    padding: 14px 14px 14px 42px;
    border-radius: 10px;
    border: none;
    outline: none;
    font-size: 15px;
    box-sizing: border-box;
}

.captcha-box {
    display: flex;
    gap: 12px;
    align-items: center;
}

.captcha-question {
    min-width: 120px;
    background: rgba(255,255,255,0.15);
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
}


   

.footer-text {
    text-align: center;
    margin-top: 20px;
    color: #dbe8ff;
    font-size: 13px;
}

.error-box {
    background: rgba(255,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 18px;
    display: none;
    text-align: center;
}

/* ===================================== */
/* ERROR BOX */
/* ===================================== */

.error-box {
    background: #ffe5e5;
    color: #c62828;
    border: 1px solid #ef9a9a;
    border-left: 5px solid #d32f2f;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake .35s ease;
}


    /* ICON */

    .error-box i {
        font-size: 18px;
        color: #d32f2f;
    }


/* SHAKE EFFECT */

@keyframes shake {

    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}


/*lOGIN button command SPIINER*/
    
.btn-login {
    width: 100%;
    border: none;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(90deg,#00b4db,#004aad);
    color: white;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
    margin-top: 10px;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    }
    .btn-login:disabled {
        background: #7d8ea3;
        cursor: not-allowed;
    }

#loginSpinner {
    margin-left: 10px;
    font-weight: 600;
    color: #0b3d91;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(0,0,0,.2);
    border-top: 3px solid #0b3d91;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    vertical-align: middle;
    margin-right: 5px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}