/* Modern Login Styles */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #6c5ce7;
    --accent-color: #00b894;
    --light-color: #f8f9fa;
    --dark-color: #2d3436;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
}

.login-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.login-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    min-height: 600px;
}

.login-illustration {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Mobile Responsiveness for Login */
@media (max-width: 992px) {
    .login-card {
        flex-direction: column;
        min-height: auto;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .login-illustration {
        padding: 30px 20px;
        min-height: 300px;
    }
    
    .login-illustration h1 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .login-illustration p {
        font-size: 0.9rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .login-illustration img {
        max-width: 60% !important;
    }
    
    .login-form-container {
        padding: 30px 25px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .login-card {
        border-radius: 12px;
        max-width: 100%;
    }
    
    .login-illustration {
        padding: 25px 15px;
        min-height: 250px;
    }
    
    .login-illustration h1 {
        font-size: 1.3rem;
    }
    
    .login-illustration p {
        font-size: 0.85rem;
    }
    
    .login-illustration img {
        max-width: 70% !important;
    }
    
    .login-form-container {
        padding: 25px 20px;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
    
    .login-header p {
        font-size: 0.9rem;
    }
    
    .form-control {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 44px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 5px;
    }
    
    .login-card {
        border-radius: 10px;
    }
    
    .login-illustration {
        padding: 20px 12px;
        min-height: 200px;
    }
    
    .login-illustration h1 {
        font-size: 1.1rem;
    }
    
    .login-illustration p {
        font-size: 0.8rem;
    }
    
    .login-illustration img {
        max-width: 80% !important;
    }
    
    .login-form-container {
        padding: 20px 15px;
    }
    
    .login-header h2 {
        font-size: 1.3rem;
    }
    
    .login-header p {
        font-size: 0.85rem;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 16px;
        min-height: 40px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .alert {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .login-illustration {
        padding: 15px 10px;
        min-height: 180px;
    }
    
    .login-illustration h1 {
        font-size: 1rem;
    }
    
    .login-illustration p {
        font-size: 0.75rem;
    }
    
    .login-form-container {
        padding: 15px 12px;
    }
    
    .login-header h2 {
        font-size: 1.2rem;
    }
    
    .login-header p {
        font-size: 0.8rem;
    }
    
    .form-control {
        padding: 8px 10px;
        min-height: 36px;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-height: 36px;
    }
}

.login-illustration::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -150px;
    right: -150px;
}

.login-illustration::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
}

.login-illustration h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.login-illustration p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 80%;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.login-illustration img {
    max-width: 100%;
    height: auto;
    margin-top: 30px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.login-form-container {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h2 {
    color: var(--dark-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: var(--primary-color);
}

/* Oval Image Styles */
.oval-image-container {
    width: 300px;
    height: 300px;
    margin: 20px auto;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.oval-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.oval-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 992px) {
    .login-card {
        flex-direction: column;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .login-illustration {
        padding: 30px 20px;
    }
    
    .login-form-container {
        padding: 40px 30px;
    }
}
