:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --background-gradient-start: #f8fafc;
    --background-gradient-end: #e2e8f0;
    --bubble-color-1: rgba(37, 99, 235, 0.1);
    --bubble-color-2: rgba(59, 130, 246, 0.15);
    --bubble-color-3: rgba(30, 64, 175, 0.08);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --card-background: rgba(255, 255, 255, 0.95);
    --card-shadow: rgba(0, 0, 0, 0.1);
}

body {
    background: linear-gradient(135deg, var(--background-gradient-start) 0%, var(--background-gradient-end) 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Bubbles */
.bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.bubble:nth-child(1) {
    width: 80px;
    height: 80px;
    background: var(--bubble-color-1);
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.bubble:nth-child(2) {
    width: 120px;
    height: 120px;
    background: var(--bubble-color-2);
    right: 15%;
    top: 10%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.bubble:nth-child(3) {
    width: 60px;
    height: 60px;
    background: var(--bubble-color-3);
    left: 20%;
    bottom: 20%;
    animation-delay: 4s;
    animation-duration: 7s;
}

.bubble:nth-child(4) {
    width: 100px;
    height: 100px;
    background: var(--bubble-color-1);
    right: 25%;
    bottom: 30%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.bubble:nth-child(5) {
    width: 70px;
    height: 70px;
    background: var(--bubble-color-2);
    left: 50%;
    top: 15%;
    animation-delay: 3s;
    animation-duration: 6s;
}

.bubble:nth-child(6) {
    width: 90px;
    height: 90px;
    background: var(--bubble-color-3);
    right: 40%;
    top: 60%;
    animation-delay: 5s;
    animation-duration: 8s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

/* Main Content */
.main-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: var(--card-background);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    position: relative;
}

.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0;
}

.form-floating {
    margin-bottom: 1.5rem;
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    background: rgba(255, 255, 255, 1);
}

.form-floating > label {
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--card-background);
}

.btn-login:active {
    transform: translateY(0);
}

.forgot-password {
    text-align: center;
    margin-top: 1.5rem;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.security-badge i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.security-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 576px) {
    .login-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .bubble {
        display: none;
    }
}

/* Loading Animation */
.btn-login.loading {
    pointer-events: none;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
