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

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* =========================================================
   LOGIN BACKGROUND
========================================================= */

.bg-login {
    background-image: url('../images/PPKUNEW1.png');
    background-size: cover;
    background-position: center center;
    padding: 65px 0;
    position: relative;
    border-radius: 0 0 50% 50%;
}

/* =========================================================
   LOGIN CONTAINER
========================================================= */

.account-pages {
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.login-card {
    width: 100%;
    max-width: 600px;
    margin: auto;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.10);
    background: #fff;
    overflow: hidden;
}

.login-header {
    padding: 24px;
}

.login-header-content {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.login-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.login-brand {
    margin-left: 15px;
}

.login-brand h5 {
    margin: 0 0 4px;
    color: #333;
    font-size: 19px;
    font-weight: 700;
}

.login-brand p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

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

.login-body {
    padding: 20px 24px 28px;
}

.login-body .form-label {
    font-weight: 600;
    color: #333;
}

.login-body .form-control {
    min-height: 44px;
}

.login-button {
    min-height: 48px;
    font-size: 18px;
    font-weight: 600;
}

.login-button i {
    margin-right: 6px;
    font-size: 18px;
}

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

.password-toggle {
    cursor: pointer;
    user-select: none;
}

/* =========================================================
   CAPTCHA
========================================================= */

.captcha-question {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-weight: 600;
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 6px;
    margin-bottom: 8px;
}

/* =========================================================
   REGISTER LINK
========================================================= */

.register-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

.register-link:hover {
    text-decoration: underline;
}

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

#loginLoading {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #0b1631,
            #12254f,
            #0d1837
        );

    overflow: hidden;
    z-index: 999999;
}

.loading-content {
    width: 320px;
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 2;
}

.logo-wrapper {
    width: 120px;
    height: 120px;
    margin: auto;

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

    background: #fff;
    border-radius: 50%;

    box-shadow:
        0 0 15px rgba(255, 255, 255, .3),
        0 0 40px rgba(52, 152, 219, .4);

    animation: pulse 2s infinite;
}

.loading-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.loading-content h3 {
    margin-top: 25px;
    margin-bottom: 0;
    font-weight: 700;
    letter-spacing: 2px;
}

.loading-content small {
    display: block;
    margin-top: 8px;
    color: #d7d7d7;
    font-size: 14px;
}

/* =========================================================
   PROGRESS
========================================================= */

.progress-box {
    width: 100%;
    height: 10px;
    margin-top: 30px;

    background: rgba(255, 255, 255, .15);
    border-radius: 30px;

    overflow: hidden;
}

.progress-fill {
    width: 0;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #00e676,
            #1de9b6,
            #64ffda
        );

    border-radius: 30px;
    transition: width .15s linear;
}

#progressPercent {
    margin-top: 15px;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

/* =========================================================
   LOADING BACKGROUND EFFECT
========================================================= */

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .25;
}

.circle1 {
    width: 350px;
    height: 350px;
    left: -100px;
    top: -100px;

    background: #3f8cff;

    animation: float1 12s infinite alternate;
}

.circle2 {
    width: 300px;
    height: 300px;
    right: -100px;
    bottom: -100px;

    background: #00d084;

    animation: float2 10s infinite alternate;
}

/* =========================================================
   MODAL
========================================================= */

#registerModal .modal-content {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
}

#registerModal .modal-header {
    background: #198754;
    color: #fff;
}

#registerModal .modal-title {
    font-weight: 600;
}

#registerModal .modal-body {
    padding: 24px;
}

#registerModal .modal-footer {
    padding: 16px 24px;
}

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

@keyframes pulse {

    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 255, 255, .25);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 50px rgba(0, 255, 180, .6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 255, 255, .25);
    }

}

@keyframes float1 {

    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(80px, 100px);
    }

}

@keyframes float2 {

    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-120px, -80px);
    }

}

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

@media (max-width: 768px) {

    .account-pages {
        padding: 15px;
        overflow-y: auto;
    }

    .login-card {
        max-width: 100%;
    }

    .login-header {
        padding: 20px;
    }

    .login-header-content {
        flex-direction: column;
        text-align: center;
    }

    .login-brand {
        margin-left: 0;
        margin-top: 12px;
    }

    .login-brand h5 {
        font-size: 16px;
    }

    .login-brand p {
        font-size: 14px;
    }

    .login-body {
        padding: 18px 20px 24px;
    }

}

@media (max-width: 480px) {

    .account-pages {
        padding: 10px;
    }

    .login-header {
        padding: 18px;
    }

    .login-brand h5 {
        font-size: 15px;
    }

    .login-brand p {
        font-size: 13px;
    }

    .login-body {
        padding: 15px;
    }

    .loading-content {
        width: calc(100% - 40px);
    }

    .logo-wrapper {
        width: 100px;
        height: 100px;
    }

    .loading-logo {
        width: 65px;
        height: 65px;
    }

}