/* 
  Isothermic - Gestion de Localisation
  Feuille de style principale
*/

/* --- RÉINITIALISATION --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- VARIABLES --- */
:root {
    --primary-color: #085d46;
    --primary-color-dark: #064535;
    --primary-color-light: #107a5d;
    --secondary-color: #42b029;
    --secondary-color-dark: #368f21;
    --secondary-color-light: #55c53b;
    --background-color: white;
    --text-color: #085d46;
    --text-color-light: #2a7d67;
    --error-color: #dc3545;
    --border-color: #d0e6d9;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(8, 93, 70, 0.1);
    --transition: all 0.3s ease;
}

/* --- BASE --- */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- CONTENEUR D'AUTHENTIFICATION --- */
.auth-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
    background-color: #f7faf9;
}

/* --- CARTE D'AUTHENTIFICATION --- */
.auth-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: auto;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* --- EN-TÊTE --- */
.auth-header {
    background-color: var(--primary-color);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--primary-color-dark);
}

.auth-logo {
    max-width: 180px;
    margin-bottom: 15px;
    height: auto;
}

.auth-title {
    font-size: 1.8rem;
    color: white;
    font-weight: 500;
}

/* --- CONTENU --- */
.auth-content {
    padding: 30px;
}

/* --- FORMULAIRE --- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-input-group label {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
}

.auth-input-group input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-color);
}

.auth-input-group input::placeholder {
    color: rgba(8, 93, 70, 0.5);
}

.auth-input-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(66, 176, 41, 0.2);
}

/* --- BOUTON --- */
.auth-button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.auth-button:hover {
    background-color: var(--secondary-color-dark);
}

/* --- MESSAGE D'ERREUR --- */
.auth-error {
    background-color: #ffe9e9;
    border-left: 4px solid var(--error-color);
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.auth-error p {
    color: var(--error-color);
}

/* --- PIED DE PAGE --- */
.auth-footer {
    text-align: center;
    padding: 20px;
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-color-light);
}

.auth-footer p {
    margin: 5px 0;
}

/* --- RESPONSIVE --- */
/* Tablette */
@media (min-width: 576px) {
    .auth-container {
        padding: 40px 20px;
    }
    
    .auth-card {
        width: 90%;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .auth-container {
        padding: 60px 20px;
    }
    
    .auth-card {
        width: 80%;
        max-width: 600px;
    }
    
    .auth-header {
        padding: 40px 30px;
    }
    
    .auth-content {
        padding: 40px;
    }
    
    .auth-button {
        padding: 14px 24px;
    }
}

/* Animation de transition */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeIn 0.5s ease-out;
}

/* Style pour les champs avec contenu */
.auth-input-group input.has-content {
    border-color: var(--secondary-color);
    background-color: rgba(66, 176, 41, 0.05);
}

/* Transition pour les messages d'erreur */
.auth-error {
    transition: opacity 0.5s ease;
}

/* Gradient subtil pour l'en-tête */
.auth-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
}