/**
 * LOGIN PAGE STYLES - BTP Manager
 * Fichier: assets/css/login-custom.css
 * 
 * Couleurs principales:
 * - Primary: #AD8265 (Beige/Brun)
 * - Secondary: #8B6F5E (Brun foncé)
 * - Orange: #FF8C42 (Orange des bâtiments)
 * - Blue: #004B87 (Bleu du logo)
 */

/* ========================================
   PAGE WRAPPER & CONTAINER
======================================== */

.auth-page-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #AD8265 0%, #8B6F5E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
}

/* ========================================
   LEFT SIDE - BRANDING
======================================== */

.auth-left {
    background: linear-gradient(135deg, #AD8265 0%, #8B6F5E 100%);
    padding: 60px 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.auth-left h1 {
    /*font-size: 2.5rem;*/
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.auth-left p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.auth-left .feature-list {
    text-align: left;
    margin-top: 30px;
}

.auth-left .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.auth-left .feature-item i {
    font-size: 1.5rem;
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 50%;
}

/* ========================================
   RIGHT SIDE - FORM
======================================== */

.auth-right {
    padding: 60px 50px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo img {
    max-height: 80px;
    width: auto;
    margin-bottom: 20px;
}

.auth-logo h3 {
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.auth-logo p {
    color: #888;
    font-size: 0.9rem;
}

/* ========================================
   FORM ELEMENTS
======================================== */

.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #AD8265;
    box-shadow: 0 0 0 0.2rem rgba(173, 130, 101, 0.25);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

/* ========================================
   BUTTONS
======================================== */

.btn-login {
    background: linear-gradient(135deg, #AD8265 0%, #8B6F5E 100%);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(173, 130, 101, 0.2);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(173, 130, 101, 0.4);
    background: linear-gradient(135deg, #8B6F5E 0%, #AD8265 100%);
}

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

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   PASSWORD TOGGLE
======================================== */

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    z-index: 10;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #AD8265;
}

/* ========================================
   ALERTS
======================================== */

.alert {
    border-radius: 10px;
    border: none;
    animation: slideInDown 0.3s ease;
}

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

/* ========================================
   LINKS
======================================== */

a.text-decoration-none {
    transition: all 0.3s ease;
}

a.text-decoration-none:hover {
    opacity: 0.8;
}

/* ========================================
   CHECKBOX
======================================== */

.form-check-input:checked {
    background-color: #AD8265;
    border-color: #AD8265;
}

.form-check-input:focus {
    border-color: #AD8265;
    box-shadow: 0 0 0 0.2rem rgba(173, 130, 101, 0.25);
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .auth-left {
        display: none;
    }
    
    .auth-right {
        padding: 40px 30px;
    }
    
    .auth-logo h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-right {
        padding: 30px 20px;
    }
    
    .auth-logo img {
        max-height: 60px;
    }
    
    .btn-login {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* ========================================
   LOADING STATE
======================================== */

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* ========================================
   CUSTOM COLORS (Easy to modify)
======================================== */

:root {
    --btp-primary: #AD8265;
    --btp-secondary: #8B6F5E;
    --btp-orange: #FF8C42;
    --btp-blue: #004B87;
    --btp-light: #F5F5F5;
    --btp-dark: #333333;
}

/* Alternative: Utiliser les variables CSS */
/*
.auth-page-wrapper {
    background: linear-gradient(135deg, var(--btp-primary) 0%, var(--btp-secondary) 100%);
}

.auth-left {
    background: linear-gradient(135deg, var(--btp-primary) 0%, var(--btp-secondary) 100%);
}

.btn-login {
    background: linear-gradient(135deg, var(--btp-primary) 0%, var(--btp-secondary) 100%);
}

.form-control:focus {
    border-color: var(--btp-primary);
    box-shadow: 0 0 0 0.2rem rgba(173, 130, 101, 0.25);
}
*/

/* Style pour le message d'alerte mobile */
.alert-warning .ri-smartphone-line {
    color: #856404;
}

.alert-warning hr {
    border-top-color: rgba(133, 100, 4, 0.2);
}

.alert-warning .btn {
    font-weight: 500;
}

.alert-warning .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.alert-warning .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.alert-warning .btn-dark {
    background-color: #343a40;
    border-color: #343a40;
}

.alert-warning .btn-dark:hover {
    background-color: #23272b;
    border-color: #1d2124;
}