/* =========================================
   MODERN LOGIN STYLES (Glassmorphism + Floating Labels)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    /* Vibrant, modern gradient background */
    background: linear-gradient(135deg, #0e309d 0%, #1e5799 50%, #17a2b8 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-container {
    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 900px;
    max-width: 95%;
    min-height: 520px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.5);
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Left Side - Branding */
.login-left {
    flex: 1;
    background: linear-gradient(rgba(14, 48, 157, 0.85), rgba(30, 87, 153, 0.85)), url('../images/loogo.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #fff;
    text-align: center;
    position: relative;
}

/* Decorative circle */
.login-left::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -50px;
    left: -50px;
}

.login-left h2 {
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 15px;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.login-left p {
    font-size: 1rem;
    opacity: 0.9;
    z-index: 2;
    line-height: 1.6;
}

.login-left img {
    width: 120px;
    margin-bottom: 25px;
    z-index: 2;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Right Side - Form */
.login-right {
    flex: 1;
    padding: 50px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.login-right h3 {
    font-weight: 700;
    color: #1e5799;
    margin-bottom: 35px;
    font-size: 1.8rem;
    text-align: center;
    letter-spacing: 1px;
}

/* Floating Label Style */
.form-group {
    position: relative;
    margin-bottom: 35px;
}

.form-control {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    background: transparent;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-bottom-color: #17a2b8;
    box-shadow: none;
    outline: none;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 35px;
    color: #999;
    font-size: 1rem;
    pointer-events: none;
    transition: 0.3s ease all;
}

/* Floating animation for labels */
.form-control:focus ~ label,
.form-control:not(:placeholder-shown) ~ label {
    top: -15px;
    left: 0;
    font-size: 0.8rem;
    color: #17a2b8;
    font-weight: 600;
}

.form-group i {
    position: absolute;
    left: 0;
    top: 12px;
    color: #aaa;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.form-control:focus ~ i {
    color: #17a2b8;
}

/* Button Style */
.btn-login {
    background: linear-gradient(135deg, #1e5799 0%, #0e309d 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 87, 153, 0.3);
    letter-spacing: 1px;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 87, 153, 0.5);
    background: linear-gradient(135deg, #0e309d 0%, #1e5799 100%);
}

.forgot-password {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
}

.forgot-password a {
    color: #888;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-password a:hover {
    color: #17a2b8;
    text-decoration: underline;
}

/* Alerts */
.alert-danger {
    border-radius: 10px;
    background-color: #ffe5e5;
    color: #d63031;
    border: none;
    font-size: 0.9rem;
    padding: 12px;
    margin-bottom: 25px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        width: 90%;
        min-height: auto;
    }
    .login-left {
        padding: 30px;
        display: none; /* Hide branding on mobile */
    }
    .login-right {
        padding: 40px 30px;
    }
}