/* Variables CSS communes - Palette de couleurs unifiée */
:root {
    --primary-color: #1976d2;
    --primary-light: #42a5f5;
    --primary-dark: #1565c0;
    --secondary-color: #9c27b0;
    --secondary-light: #ba68c8;
    --secondary-dark: #7b1fa2;
    --success-color: #2e7d32;
    --success-light: #4caf50;
    --success-dark: #1b5e20;
    --warning-color: #ed6c02;
    --warning-light: #ff9800;
    --warning-dark: #e65100;
    --danger-color: #d32f2f;
    --danger-light: #ef5350;
    --danger-dark: #c62828;
    --info-color: #0288d1;
    --info-light: #03a9f4;
    --info-dark: #01579b;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.6s ease-out;
}

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

.login-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.logo-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.logo-container img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.app-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
}

.app-subtitle {
    font-size: 0.9rem;
    margin-top: 5px;
    opacity: 0.9;
    font-weight: 300;
}

.login-body {
    padding: 40px 30px;
}

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

.form-control {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e1e8ed;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--light-color);
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
    transform: translateY(-2px);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 18px;
    z-index: 2;
}

.form-control::placeholder {
    color: #a0a9b8;
    font-weight: 400;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: var(--primary-color);
}

.remember-me label {
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(25, 118, 210, 0.3);
}

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

.login-btn i {
    margin-right: 10px;
}

.message-container {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        margin: 10px;
        border-radius: 15px;
    }

    .login-header {
        padding: 30px 20px;
    }

    .login-body {
        padding: 30px 20px;
    }

    .app-title {
        font-size: 1.7rem;
    }
}

/* Animation pour les inputs */
.form-group {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.login-btn { animation-delay: 0.4s; }

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