/* ============================================================
   PAGES AUTH — Login, Register, Reset Password
   Formulaires d'authentification centrés, avec icônes dans les champs.
   Mobile-first.
   ============================================================ */

.auth-container {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 1.5rem);
}

.auth-form {
    background-color: #fff;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 420px;
    padding: clamp(1.25rem, 4vw, 2rem);
    border-radius: var(--radius);
}

.auth-form.register {
    max-width: 600px;
}

.auth-form .icon-circle {
    height: 64px;
    width: 64px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    margin: 0 auto 1.5rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-form .input-icon-wrapper svg {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    transition: color 0.2s ease;
    pointer-events: none;
}

.auth-form .form-control {
    padding: 0.75rem 2.5rem 0.75rem 2.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    font-size: 1rem;
    min-height: 44px;
}

.auth-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 182, 17, 0.2);
    outline: none;
}

.auth-form .input-icon-wrapper:focus-within svg {
    color: var(--primary-color);
}

.auth-form .btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 600;
    width: 100%;
    color: #000;
    transition: transform 0.1s ease, background-color 0.2s;
    min-height: 48px;
}

.auth-form .btn-primary:hover {
    background-color: var(--primary-hover);
}

.auth-form .btn-primary:active {
    transform: scale(0.98);
}

.auth-form .form-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #edf2f7;
    text-align: center;
    color: var(--text-muted);
}

.auth-form .form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.auth-form .form-footer a:hover {
    text-decoration: underline;
}

.auth-form .invalid-feedback,
.auth-form .alert-danger {
    font-size: 0.875rem;
    border-radius: 8px;
    margin-top: 0.35rem;
}

/* Toggle afficher/masquer mot de passe */
.auth-form .password-field {
    margin-bottom: 1rem;
}

.auth-form .password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem;
    z-index: 10;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form .password-toggle-btn:hover {
    color: var(--primary-color);
}

.auth-form .input-icon-wrapper .form-control {
    padding-right: 2.5rem;
}

/* Inscription : champs groupés */
.auth-form.register hr {
    border-color: #edf2f7;
    opacity: 1;
}

.auth-form.register h6.text-muted {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 576px) {
    .auth-form.register {
        padding: 1.25rem;
    }
}
