/* Définition des couleurs */
:root {
    --light-gray: #D9D9D9 !important;
    --white: #FFFFFF !important;
    --dark-gold: #A3831C !important;
    --gold: #DBC014 !important;
}

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

.login-container {
    width: 100%;
    max-width: 380px;
    padding: 20px 25px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

/* Sélecteur de langue - Drapeaux uniquement */
.language-selector {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000;
}

.lang-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    justify-content: center;
}

.lang-dropdown:hover {
    border-color: var(--gold);
    box-shadow: 0 2px 8px rgba(219, 192, 20, 0.2);
}

.current-flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
}

.lang-dropdown i {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.language-selector.active .lang-dropdown i {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: -10px;
    width: 70px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: none;
    margin-top: 8px;
    overflow: hidden;
    z-index: 1001;
}

.language-selector.active .lang-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.lang-option {
    display: flex;
    justify-content: center;
    padding: 8px 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lang-option img {
    width: 32px;
    height: 22px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.lang-option:hover {
    background-color: rgba(219, 192, 20, 0.15);
}

.lang-option.active {
    background-color: var(--gold);
}

.lang-option.active img {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.7);
}

/* Ajustement pour l'en-tête avec le logo */
.text-center.mb-2 {
    margin-top: 35px;
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-title {
    text-align: center;
    margin-bottom: 8px;
    color: var(--dark-gold);
    font-size: 22px;
    font-weight: 600;
}

.login-description {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

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

.input-group input {
    width: 100%;
    padding: 12px 45px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.input-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(219, 192, 20, 0.2);
    background-color: var(--white);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 20px;
    pointer-events: none;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    background-color: var(--dark-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(163, 131, 28, 0.3);
}

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

.login-btn:disabled {
    background-color: var(--light-gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cancel-btn {
    width: 100%;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    color: #555;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.cancel-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.loading-spinner {
    display: none;
    font-size: 16px;
}

.signup-prompt {
    text-align: center;
    margin-top: 18px;
    color: #666;
    font-size: 13px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.signup-prompt a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-prompt a:hover {
    text-decoration: underline;
    color: var(--dark-gold);
}

/* Alertes */
.alert {
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 15px;
    border: none;
    font-size: 13px;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 4px solid #28a745;
    color: #155724;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.alert-dismissible {
    padding-right: 40px;
}