/* Login Page Styles */
body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #2c3e50 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Background Icons */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Floating Icons */
.bg-icon {
    position: fixed !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 2.5rem !important;
    z-index: 1 !important;
    pointer-events: none !important;
    animation: float 6s ease-in-out infinite !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.bg-icon:nth-child(1) {
    top: 10% !important;
    left: 10% !important;
    animation-delay: 0s !important;
}

.bg-icon:nth-child(2) {
    top: 20% !important;
    right: 15% !important;
    animation-delay: 1s !important;
}

.bg-icon:nth-child(3) {
    bottom: 15% !important;
    left: 20% !important;
    animation-delay: 2s !important;
}

.bg-icon:nth-child(4) {
    bottom: 25% !important;
    right: 10% !important;
    animation-delay: 3s !important;
}

.bg-icon:nth-child(5) {
    top: 50% !important;
    left: 5% !important;
    animation-delay: 4s !important;
}

.bg-icon:nth-child(6) {
    top: 60% !important;
    right: 5% !important;
    animation-delay: 5s !important;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
}

.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 550px;
    position: relative;
    z-index: 10;
}

.login-header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
}

.login-header h2 {
    margin: 0;
    font-weight: 600;
}

.login-logo {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-body {
    padding: 2.5rem;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-size: 1rem;
    line-height: 1.5;
    background-color: #fff;
    width: 100%;
}

.form-control:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
    outline: none;
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 1;
}

/* Ensure consistent styling for both username and password fields */
input[type="text"].form-control,
input[type="password"].form-control {
    height: 48px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"].form-control:focus,
input[type="password"].form-control:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
    outline: none;
}

.btn-login {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.alert {
    border-radius: 8px;
    border: none;
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
}

.login-footer {
    text-align: center;
    padding: 1.5rem 2.5rem 2.5rem;
    color: #6c757d;
}

.login-footer a {
    color: #2c3e50;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Form label styling */
.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Form group spacing */
.mb-3 {
    margin-bottom: 1.5rem;
}

/* Error message styling */
.text-danger {
    color: #dc3545 !important;
}

.text-danger small {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Ensure form fields are properly aligned */
.form-control {
    display: block;
    width: 100%;
    box-sizing: border-box;
}
