/* Styles de l'application - extraits de public/index.php */

body {
    background: url('../img/fond-md-003.jpg') center center/cover no-repeat fixed;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 540px;
    width: 100%;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 2rem;
    text-align: center;
}

.card-header h2 {
    margin: 0;
    font-weight: 600;
    font-size: 1.8rem;
}

.card-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

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

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    color: white;
}

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

.form-floating { margin-bottom: 1.5rem; }

.step-indicator { display: flex; justify-content: center; margin-bottom: 2rem; }

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.step.inactive { background: #e9ecef; color: #6c757d; }

.step-line { width: 30px; height: 2px; background: #e9ecef; margin-top: 19px; }
.step-line.active { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

.alert { border-radius: 10px; border: none; margin-bottom: 1.5rem; }

.loading { display: none; }

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

.otp-input { text-align: center; font-size: 1.5rem; letter-spacing: 0.5rem; font-weight: 600; }

.back-btn {
    background: #6c757d;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-btn:hover { background: #5a6268; color: white; }

.logo-main { max-height: 60px; width: auto; filter: brightness(0) invert(1); transition: all 0.3s ease; }
.logo-secondary { max-height: 40px; width: auto; filter: brightness(0) invert(1); transition: all 0.3s ease; }
.logo-main:hover, .logo-secondary:hover { transform: scale(1.05); }

.logo-container { display: flex; align-items: center; justify-content: center; gap: 15px; flex-wrap: wrap; }

@media (max-width: 576px) {
    .logo-container { flex-direction: column; gap: 10px; }
    .logo-main { max-height: 50px; }
    .logo-secondary { max-height: 35px; }
}

.footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    text-align: center;
    font-size: 0.8rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
}
.footer p { margin: 0; line-height: 1.4; }

.login-container { padding-bottom: 80px; }

.prosanteconnect-link { display: block; text-decoration: none; width: 100%; }
.prosanteconnect-img { width: 100%; height: auto; display: block; }

.divider-container { display: flex; align-items: center; margin: 20px 0; }
.divider-line { flex: 1; height: 1px; background-color: #dee2e6; }
.divider-text { padding: 0 15px; color: #6c757d; font-size: 0.9rem; font-weight: 500; background-color: white; }

/* Règles de mot de passe (phase 2) */
.password-rules { font-size: 0.9rem; margin: 10px 0 16px 0; color: #6c757d; }
.password-rules .rule-item { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.password-rules .rule-item i { font-size: 1rem; }
.password-rules .valid { color: #198754; }
.password-rules .invalid { color: #dc3545; }

/* Modal CGU dimensions */
.modal-cgu .modal-dialog {
    max-width: 70vw;
    width: 70vw;
}
.modal-cgu .modal-content {
    height: 80vh;
}
.modal-cgu .modal-body {
    height: 100%;
}


