/* public/css/style_auth.css */

:root {
    --primary-gold: #f78000;
    --primary-gold-dark: #f78000;
    --bg-light: #f4f7f6;
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --white: #ffffff;
    --radius: 20px;
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}


/* Styles de base supprimés ici car ils sont redéfinis plus bas de manière plus spécifique */

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    min-height: 600px;
    overflow: hidden;
    position: relative;
}

/* Left Side: Image/Info */
.login-left {
    flex: 1;
    background-color: var(--primary-gold);
    padding: 50px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.logo-box i {
    font-size: 24px;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.left-content h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.left-content p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 400px;
}

.left-footer {
    font-size: 14px;
    opacity: 0.7;
}

/* Right Side: Form */
.login-right {
    flex: 1;
    padding: 60px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header h2 {
    font-weight: 700;
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-muted);
    margin-bottom: 35px;
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 8px;
}

.input-group-custom {
    position: relative;
    margin-bottom: 20px;
}

.input-group-custom > i:not(.fa-eye):not(.fa-eye-slash) {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
    z-index: 10;
    pointer-events: none;
}

.input-group-custom .form-control {
    padding: 14px 45px 14px 50px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background-color: #fcfcfc;
    font-size: 15px;
    transition: all 0.3s ease;
}

.input-group-custom .form-control:focus {
    box-shadow: 0 0 0 4px rgba(197, 164, 109, 0.1);
    border-color: var(--primary-gold);
    background-color: var(--white);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    z-index: 11;
    background: none;
    border: none;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
}

.password-toggle i {
    font-size: 18px;
    position: static !important;
    transform: none !important;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    color: var(--primary-gold-dark);
    text-decoration: underline;
}

.btn-login {
    background-color: var(--primary-gold);
    border: none;
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.btn-login:hover {
    background-color: var(--primary-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 164, 109, 0.3);
}

.divider {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    color: var(--text-muted);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    padding: 0 15px;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--white);
    border: 1px solid #e0e0e0;
    padding: 14px;
    border-radius: 12px;
    color: var(--text-dark);
    font-weight: 500;
    width: 100%;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    text-decoration: none;
}

.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #d0d0d0;
}

.btn-google img {
    width: 20px;
}

.signup-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.signup-text a {
    color: var(--primary-gold);
    font-weight: 600;
    text-decoration: none;
}

.signup-text a:hover {
    text-decoration: underline;
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 35px;
    height: 35px;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    color: var(--text-dark);
    text-decoration: none;
    z-index: 100;
}

@media (max-width: 991px) {
    .login-card {
        flex-direction: column;
        max-width: 500px;
        margin: 0 auto;
    }
    .login-left {
        padding: 40px;
        min-height: auto;
    }
    .left-content h1 {
        font-size: 32px;
    }
    .login-right {
        padding: 40px;
    }
    body {
        overflow-y: auto;
        height: auto;
        padding: 40px 0;
    }
}

/* --- Legacy / Compatibility Styles --- */

/* Agrandir la hauteur de la boîte Select2 */
.select2-container .select2-selection--single {
    height: 50px !important;
    padding: 10px 14px;
    font-size: 16px;
}

/* Centrer verticalement le texte */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px !important;
    font-size: 16px;
}

/* Agrandir la flèche (dropdown icon) */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px !important;
}

/* Pour les champs multiples */
.select2-container--default .select2-selection--multiple {
    min-height: 50px;
    font-size: 16px;
    padding: 8px;
}

.btn-success-legacy {
    padding: 15px 50px;      /* Plus de hauteur et largeur */
    font-size: 1.5rem;       /* Texte plus grand */
    font-weight: 600;        /* Texte un peu plus épais */
    border-radius: 8px;      /* Coins légèrement arrondis */
}
.btn-primary-legacy {
    padding: 10px 30px;      /* Plus de hauteur et largeur */
    font-size: 1.1rem;       /* Texte plus grand */
    font-weight: 300;        /* Texte un peu plus épais */
    border-radius: 8px;      /* Coins légèrement arrondis */
}
