* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body.login-page {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #5b6fd8, #6b4a8a, #6fd4a0, #7abed8);
    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
    position: relative !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    overflow: hidden;
}

/* Animated Gradient Keyframes */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating Particles */
body.login-page::before,
body.login-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 15s ease-in-out infinite;
}

body.login-page::before {
    width: 400px;
    height: 400px;
    background: rgba(111, 212, 160, 0.3);
    top: -200px;
    left: -200px;
    animation: float 18s ease-in-out infinite;
}

body.login-page::after {
    width: 500px;
    height: 500px;
    background: rgba(122, 190, 216, 0.3);
    bottom: -250px;
    right: -250px;
    animation: float 22s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 400px;
    max-width: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: fadeInUp 0.8s ease;
    z-index: 10;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.login-card h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 30px;
}

.form-label {
    font-weight: 500;
    color: #555;
}

.btn-primary {
    background: #667eea;
    border: none;
    padding: 12px;
    font-weight: 600;
}

.btn-primary:hover {
    background: #5568d3;
}

.text-muted a {
    color: #667eea;
    text-decoration: none;
}

.text-muted a:hover {
    text-decoration: underline;
}

.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.form-control:focus {
    border-color: #667eea;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.w-100 {
    width: 100%;
}

.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.text-muted {
    color: #6c757d;
}

small {
    font-size: 0.875em;
}
