/* ==========================================
   CRIS D'ALERTE SARL - STYLES PRINCIPAUX
   ========================================== */

/* ==========================================
   RESET & BASE
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    color: #333;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    color: #0056b3;
}

/* ==========================================
   AUTHENTIFICATION PAGES
   ========================================== */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    min-height: 100vh;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.auth-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #1a2a6c;
}

.auth-header .logo i {
    font-size: 32px;
    color: #b21f1f;
}

.auth-header .logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.auth-header .subtitle {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: -5px;
}

.auth-header .auth-subtitle {
    font-size: 14px;
    color: #888;
    margin-top: 10px;
}

/* ==========================================
   FORMULAIRES
   ========================================== */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}

.form-group label i {
    margin-right: 8px;
    color: #1a2a6c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a2a6c;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* ==========================================
   BOUTONS
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #1a2a6c, #2a3f8a);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0f1a4a, #1a2a6c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 42, 108, 0.3);
}

.btn-danger {
    background: #b21f1f;
    color: #fff;
}

.btn-danger:hover {
    background: #8a1818;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(178, 31, 31, 0.3);
}

.btn-success {
    background: #28a745;
    color: #fff;
}

.btn-success:hover {
    background: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-warning {
    background: #fdbb2d;
    color: #333;
}

.btn-warning:hover {
    background: #e0a520;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ==========================================
   ALERTES
   ========================================== */

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

/* ==========================================
   AUTH FOOTER
   ========================================== */

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e1e5eb;
    font-size: 14px;
    color: #666;
}

.auth-footer a {
    font-weight: 600;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 480px) {
    .auth-box {
        padding: 25px 20px;
    }
    
    .auth-header .logo h1 {
        font-size: 20px;
    }
    
    .btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

