:root {
    --primary-color: #1e3c72;
    --secondary-color: #2a5298;
}

body.login-page {
    background: linear-gradient(rgba(30, 60, 114, 0.8), rgba(42, 82, 152, 0.8)), 
                 url('../img/cover.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    margin: 0;
    padding: 0;
}

.login-container {
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    padding: 10px;
}

.logo img {
    width: 110%;
    height: 110%;
    object-fit: contain;
}

.logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
    padding: 2rem 1.5rem;
}

.login-header h3 {
    font-weight: 700;
    margin: 0;
}

.login-header p {
    font-size: 0.9rem;
    margin: 0;
}

.form-floating > .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 0.25rem rgba(42, 82, 152, 0.25);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #1e3c72;
}

.form-check-input:checked {
    background-color: #2a5298;
    border-color: #2a5298;
}

.form-check-label {
    color: #555;
    font-size: 0.9rem;
}

.login-card a {
    color: #2a5298;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.login-card a:hover {
    color: #1e3c72;
}

.btn-login {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: none;
    padding: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
}

.invalid-feedback {
    display: block;
    font-size: 0.875rem;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.text-white.opacity-75 {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (max-width: 576px) {
    .login-container {
        padding: 10px;
    }

    .logo {
        width: 80px;
        height: 80px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .login-header h3 {
        font-size: 1.5rem;
    }
}