/* Admin Login CSS - Modern & Professional Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -2;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 138, 101, 0.8) 0%, 
        rgba(255, 165, 0, 0.7) 25%, 
        rgba(218, 165, 32, 0.8) 50%, 
        rgba(205, 133, 63, 0.7) 75%, 
        rgba(160, 82, 45, 0.8) 100%);
    z-index: -1;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    padding: 40px 30px 30px;
    background: linear-gradient(135deg, #FF8A65 0%, #FFA500 100%);
    color: white;
    position: relative;
}

.login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 138, 101, 0.9) 0%, 
        rgba(255, 165, 0, 0.8) 100%);
}

.login-header > * {
    position: relative;
    z-index: 1;
}

.logo-container {
    margin-bottom: 20px;
}

.login-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    object-fit: contain;
}

.login-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-header h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.9;
}

.login-header p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

.login-form-container {
    padding: 40px 30px;
}

.alert {
    margin-bottom: 25px;
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
    font-size: 14px;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.alert-success {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
}

.alert i {
    margin-right: 8px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: #FF8A65;
    width: 16px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    outline: none;
    border-color: #FF8A65;
    box-shadow: 0 0 0 3px rgba(255, 138, 101, 0.1);
    transform: translateY(-1px);
}

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: #FF8A65;
    background: rgba(255, 138, 101, 0.1);
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.form-check-input {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #FF8A65;
}

.form-check-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.btn-login {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #FF8A65 0%, #FFA500 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 138, 101, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 138, 101, 0.4);
    background: linear-gradient(135deg, #FFA500 0%, #FF8A65 100%);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-login i {
    margin-right: 10px;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.login-footer p {
    margin: 10px 0;
}

.login-footer a {
    color: #FF8A65;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-footer a:hover {
    color: #FFA500;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        max-width: 95%;
        padding: 10px;
    }
    
    .login-header {
        padding: 30px 20px 20px;
    }
    
    .login-header h2 {
        font-size: 24px;
    }
    
    .login-form-container {
        padding: 30px 20px;
    }
    
    .login-logo {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .login-card {
        border-radius: 15px;
    }
    
    .login-header {
        padding: 25px 15px 15px;
    }
    
    .login-form-container {
        padding: 25px 15px;
    }
    
    .form-control {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .btn-login {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Loading Animation */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Security Badge */
.login-header::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    z-index: 2;
}

/* Focus States for Accessibility */
.form-control:focus,
.btn-login:focus,
.password-toggle:focus {
    outline: 2px solid #FF8A65;
    outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .login-card {
        background: rgba(30, 30, 30, 0.95);
        color: #fff;
    }
    
    .form-group label {
        color: #fff;
    }
    
    .form-control {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: #fff;
    }
    
    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }
    
    .form-check-label {
        color: #ccc;
    }
    
    .login-footer {
        border-top-color: rgba(255, 255, 255, 0.2);
    }
}
