﻿
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #1abc9c;
    --success-color: #27ae60;
    --warning-color: #e74c3c;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: "Inter", system-ui, -apple-system;
    overflow-x: hidden;
    overflow-y: auto;
}

#main {
    margin-left: 20px;
    padding: 0;
    padding-bottom: 52px;
    min-height: 500px;
    position: relative;
}

/* ================= VIDEO ================= */
.video-container {
    position: fixed;
    inset: 0;
    z-index: -2;
}

#bgVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom right, rgba(0,0,0,0.6), rgba(0,0,0,0.35) );
    z-index: 1;
}

.video-fallback {
    position: fixed;
    inset: 0;
    display: none;
    z-index: -1;
}

/* ================= CENTER CONTAINER ================= */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ================= LOGIN CARD ================= */
.login-card {
    width: 100%;
    max-width: 440px;
    padding: 42px 36px;
    border-radius: 18px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
    color: #fff;
    animation: fadeUp .6s ease;
}

@@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HEADER STYLES ===== */
.login-header {
    text-align: center;
    margin-bottom: 32px;
    margin-top: -80px;
}

.circle-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: white;
    padding: 10px;
}

    .circle-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.main-logo {
    margin-bottom: 12px;
}

    .main-logo img {
        max-width: 220px;
        height: auto;
        filter: brightness(1.1);
    }

.project-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    display: inline-block;
}

/* ===== CAPTCHA STYLES ===== */
/*        .captcha-container {
            margin: 20px 0;
            text-align: center;
            animation: slideDown 0.4s ease;
        }*/

@@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*        .captcha-image-wrapper {
            background: rgba(255,255,255,0.1);
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 15px;
            border: 1px solid rgba(255,255,255,0.2);
        }*/
/*
        .captcha-image {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            border: 2px solid rgba(255,255,255,0.3);
            cursor: pointer;
            transition: var(--transition);
            background: #fff;
        }*/

.captcha-image:hover {
    transform: scale(1.02);
    border-color: var(--accent-color);
}
/*
        .refresh-captcha {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #fff;
            cursor: pointer;
            font-size: 14px;
            padding: 8px 16px;
            background: rgba(255,255,255,0.15);
            border-radius: 30px;
            transition: var(--transition);
            margin-top: 10px;
            border: 1px solid rgba(255,255,255,0.2);
        }*/

.refresh-captcha:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.refresh-captcha i {
    font-size: 16px;
}

/* ===== ATTEMPTS WARNING ===== */
.attempts-warning {
    color: #ffd966;
    font-size: 13px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 193, 7, 0.15);
    border-radius: 8px;
    border-left: 3px solid #ffc107;
    text-align: left;
    animation: pulse 2s infinite;
}

@@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

.account-locked {
    color: #ff8a8a;
    font-size: 14px;
    font-weight: 500;
    margin: 15px 0;
    padding: 15px;
    background: rgba(220, 53, 69, 0.2);
    border-radius: 10px;
    border-left: 4px solid #dc3545;
    text-align: center;
    backdrop-filter: blur(5px);
}

    .account-locked i {
        font-size: 24px;
        margin-bottom: 10px;
        display: block;
    }

/* ================= FORM ================= */
.form-label {
    font-weight: 500;
    color: #f1f1f1;
}

.input-group-text {
    background: rgba(255,255,255,0.18);
    border: none;
    color: #fff;
}

.form-control {
    height: 52px;
    background: rgba(255,255,255,0.22);
    border: none;
    color: #fff;
}

    .form-control::placeholder {
        color: rgba(255,255,255,0.75);
    }

    .form-control:focus {
        background: rgba(255,255,255,0.3);
        box-shadow: 0 0 0 2px rgba(255,255,255,0.35);
        color: #fff;
    }

    .form-control:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.input-wrapper {
    position: relative;
}

.validation-icon {
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    font-size: 18px;
}

.fa-check-circle {
    color: #28a745;
}

.fa-exclamation-circle {
    color: #dc3545;
}

.error-message {
    font-size: 13px;
    color: #ffd1d1;
    margin-top: 6px;
    display: none;
}

/* ================= BUTTON ================= */
.btn-primary {
    height: 54px;
    font-weight: 600;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    transition: var(--transition);
}

    .btn-primary:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 16px 40px rgba(0,0,0,0.55);
    }

    .btn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background: linear-gradient(135deg, #667eea, #764ba2);
    }

.btn-loading {
    pointer-events: none;
    opacity: 0.8;
}

/* ================= LINKS ================= */
.forgot-password {
    font-size: 14px;
    color: #cdd9ff;
    text-decoration: none;
}

    .forgot-password:hover:not(.disabled-link) {
        text-decoration: underline;
    }

.disabled-link {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* ================= LOADER ================= */
.loader {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
    animation: spin 0.8s linear infinite;
}

.btn-loading .loader {
    display: inline-block;
    margin-right: 8px;
}

.btn-loading .btn-text {
    display: none;
}

@@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.toggle-password {
    background: rgba(255,255,255,0.18);
    border: none;
    color: #fff;
    cursor: pointer;
}

    .toggle-password:hover {
        background: rgba(255,255,255,0.3);
    }



/* ================= CAPTCHA FINAL ================= */
/* ===== FINAL INLINE CAPTCHA ===== */

/*        #captchaSection {
            gap: 8px;
            width: 100%;
            margin: 15px 0;
        }

        .captcha-image-inline {
            width: 110px;
            height: 42px;
            background: #fff;
            border-radius: 8px;
            padding: 4px;
            object-fit: contain;
            flex-shrink: 0;
        }

        #captchaRefreshBtn {
            width: 42px;
            height: 42px;
            border: none;
            border-radius: 8px;
            background: rgba(255,255,255,0.18);
            color: #fff;
            flex-shrink: 0;
        }

        #captchaInput {
            width: 0;
            flex: 1;
            height: 42px;
            border: none;
            border-radius: 8px;
            background: rgba(255,255,255,0.18);
            color: #fff;
            padding: 0 12px;
            outline: none;
            min-width: 0;
        }

            #captchaInput::placeholder {
                color: rgba(255,255,255,0.7);
            }*/

/* ===== PREMIUM INLINE CAPTCHA ===== */

#captchaSection {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 16px 0;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.captcha-image-inline {
    width: 120px;
    height: 42px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.08);
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

#captchaRefreshBtn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    cursor: pointer;
    transition: 0.2s ease;
    flex-shrink: 0;
}

    #captchaRefreshBtn:hover {
        background: rgba(255,255,255,0.24);
        transform: rotate(90deg);
    }

#captchaInput {
    width: 0;
    flex: 1;
    min-width: 0;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    padding: 0 14px;
    outline: none;
    font-size: 14px;
}

    #captchaInput::placeholder {
        color: rgba(255,255,255,0.65);
    }

    #captchaInput:focus {
        background: rgba(255,255,255,0.22);
    }


