/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Conteneur principal */
.login-wrapper {
    width: 100%;
    max-width: 440px;
}

.login-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* En-tête */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 15px;
    color: #718096;
}

/* Message d'erreur */
.error-message {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    color: #c53030;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message svg {
    flex-shrink: 0;
}

/* Formulaire */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2d3748;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #a0aec0;
}

/* Bouton */
.btn-login {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* Responsive - Tablettes */
@media (max-width: 768px) {
    .login-container {
        padding: 32px 24px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .login-header p {
        font-size: 14px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .login-container {
        padding: 28px 20px;
        border-radius: 12px;
    }

    .login-header {
        margin-bottom: 24px;
    }

    .login-header h2 {
        font-size: 22px;
    }

    .login-header p {
        font-size: 13px;
    }

    .form-group input {
        padding: 11px 14px;
        font-size: 16px; /* Évite le zoom sur iOS */
    }

    .btn-login {
        padding: 13px;
        font-size: 15px;
    }

    .error-message {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Petits écrans */
@media (max-width: 360px) {
    .login-container {
        padding: 24px 16px;
    }

    .login-header h2 {
        font-size: 20px;
    }
}