/* Styles de base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    /* background-image déplacé dans login.php pour utiliser BASE_URL */
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.login-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 1;
}

.login-card-container {
    display: flex;
    flex-direction: row;
    width: 95%;
    max-width: 1100px;
    min-height: 550px;
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 10px auto;
    position: relative;
}

/* Logo à gauche */
.logo-column {
    flex: 1.2;
    background: linear-gradient(135deg, #FF7A00 0%, #FF9F40 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.logo-column::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.logo-section {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.large-logo {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.quotes-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    overflow: hidden;
    background: linear-gradient(to top, rgba(255, 122, 0, 0.9) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
}

#daily-quotes {
    position: relative;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.daily-quote {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 18px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.daily-quote.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.daily-quote.prev {
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
}

.quote-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    line-height: 1.4;
    font-style: italic;
    margin: 0 0 6px 0;
    text-align: center;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.quote-author {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin: 0;
    text-align: center;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Indicateurs pointillés */
.quote-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.quote-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.quote-dot.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
}

/* Formulaire à droite */
.form-column {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.login-header {
    margin-bottom: 30px;
    text-align: center;
}

.login-title {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.login-subtitle-text {
    color: #666;
    font-size: 15px;
    margin: 0;
    font-weight: 400;
}

.login-title {
    font-size: clamp(16px, 3vw, 22px);
    font-weight: 700;
    color: #333;
    margin: 0;
}

.login-subtitle {
    text-align: center;
    margin-bottom: 15px;
    display: none; /* Masquer car déjà dans le header */
}

.login-subtitle p {
    color: #666;
    font-size: 14px;
    font-weight: 400;
}

.login-error, .error-alert {
    display: flex;
    align-items: flex-start;
    background: #ffebee;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #f44336;
}

.login-error i, .error-alert i {
    color: #f44336;
    margin-right: 12px;
    font-size: 20px;
    margin-top: 2px;
}

.login-error p, .error-alert p {
    color: #d32f2f;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container i {
    position: absolute;
    left: 15px;
    color: #999;
    font-size: 16px;
    z-index: 1;
}

.form-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.form-group input:focus {
    border-color: #FF7A00;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

.password-toggle {
    position: absolute;
    right: 15px;
    color: #999;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: #FF7A00;
}

.remember-me {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.checkbox-container input {
    margin-right: 8px;
    width: auto;
}

.forgot-password {
    color: #FF7A00;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #FF9F40;
    text-decoration: underline;
}

.btn-login {
    background: linear-gradient(135deg, #FF7A00 0%, #FF9F40 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px;
    width: 100%;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4);
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #757575;
}

/* Media queries pour la responsivité */
@media (max-width: 768px) {
    .login-card-container {
        flex-direction: column;
        width: 95%;
        max-height: none;
    }
    
    .logo-column {
        padding: 20px;
        max-height: 160px;
        justify-content: center;
    }
    
    .logo-section {
        margin-bottom: 0;
    }
    
    .large-logo {
        max-height: 80px;
    }
    
    .quotes-section {
        display: none; /* Masquer les citations sur petits écrans */
    }
    
    .form-column {
        padding: 20px;
    }
    
    .login-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    
    .login-card-container {
        width: 100%;
        border-radius: 10px;
    }
    
    .form-column {
        padding: 15px;
    }
    
    .login-title {
        font-size: 16px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input {
        padding: 8px 10px;
    }
    
    .login-button {
        padding: 8px 0;
        font-size: 14px;
    }
    
    .remember-me {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .forgot-password {
        margin-top: 5px;
    }
}
