/* USAUTO Admin Panel - Login Styles */

body {
    background: url('/assets/images/backgrounds/paneltlo.webp') center center/cover no-repeat fixed,
                linear-gradient(135deg, #2c3e50 0%, #34495e 25%, #3c5266 50%, #2c3e50 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: Arial, sans-serif;
    position: relative;
}

/* Overlay to darken background for better readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    position: relative;
    z-index: 2;
    /* Animation on page load */
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: fadeInUp 0.6s ease-out forwards;
}

/* After fade-in completes, reset to stable state */
.login-card.loaded {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: none;
}

.login-header {
    background: #3a3a3a;
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.login-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

.login-logo {
    max-height: 80px;
    max-width: 280px;
    height: auto;
    width: auto;
    margin-bottom: 1rem;
    /* Removed filter to show original colors */
}

.login-body {
    padding: 2rem;
}

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

.btn-login {
    background: #ffc107;
    border: none;
    color: #3a3a3a;
    padding: 0.75rem;
    font-weight: 600;
    transition: transform 0.2s;
    width: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    background: #e0a800;
    color: #3a3a3a;
}

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

.form-check-label {
    color: #666;
    font-weight: normal;
}

.text-muted small {
    color: #999;
}

/* Alert styles */
.alert {
    border-radius: 8px;
    margin-bottom: 1rem;
}

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

.alert-success {
    background-color: #d1edff;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Login footer */
.login-footer {
    padding: 1rem;
    text-align: right;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-right: 20px;
}

.login-footer small {
    color: #9ea4a1;
    font-size: 0.75rem;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateY(0) scale(1) translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateY(0) scale(1) translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateY(0) scale(1) translateX(10px);
    }
}

/* Shake class that can be added via JavaScript */
.login-card.shake {
    animation: shake 0.4s ease-in-out !important;
}

/* Error state styling */
.login-card.error {
    border: 2px solid #dc3545;
}

/* Success state styling */
.login-card.success {
    border: 2px solid #28a745;
}