/* admin-login.css */
:root {
    --primary-color: #FF6B35;
    --primary-dark: #E05520;
    --primary-light: #FF8C5A;
    --admin-blue: #1a237e;
    --admin-blue-dark: #0d1540;
    --white: #FFFFFF;
    --light-bg: #f8fafc;
    --card-bg: #FFFFFF;
    --text-dark: #1A202C;
    --text-light: #4A5568;
    --text-muted: #718096;
    --border-color: #E2E8F0;
    --border-dark: #CBD5E0;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.8) 0%, rgba(26, 115, 232, 0.6) 100%),
    url('https://www.pressafrik.com/photo/art/grande/83399756-59718017.jpg?v=1728556128');
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-login-container {
    width: 100%;
    max-width: 480px;
    animation: fadeIn 0.5s ease;
}

.admin-login-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--admin-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-light);
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 400;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: var(--radius);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
    animation: slideIn 0.3s ease;
}

.alert-danger {
    background: linear-gradient(135deg, #FED7D7 0%, #FEB2B2 100%);
    border-left: 4px solid #E53E3E;
    color: #742A2A;
}

.alert-success {
    background: linear-gradient(135deg, #C6F6D5 0%, #9AE6B4 100%);
    border-left: 4px solid #38A169;
    color: #22543D;
}

.alert i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.alert div {
    flex: 1;
}

.alert strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.alert p {
    font-size: 0.9rem;
    margin: 2px 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Formulaire */
.login-form {
    margin-bottom: 30px;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group label i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 48px 16px 48px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--light-bg);
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: var(--text-dark);
}

/* Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
    user-select: none;
}

.checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary-color);
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn i {
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 576px) {
    .admin-login-card {
        padding: 30px 25px;
    }
    
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .back-link {
        align-self: flex-start;
    }
}