/* =========================================================
   Page de connexion
   - Par défaut : deux choix (créer ma carte / j'ai déjà une carte)
   - .auth-login-open : formulaire de connexion affiché
   ========================================================= */

.auth-benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 20px;
    background: rgba(255,193,7,0.10);
    border: 1px solid rgba(255,193,7,0.28);
    color: rgba(255,255,255,0.88);
    text-align: left;
    line-height: 1.3;
}

.auth-benefit strong {
    color: #ffc107;
}

.auth-benefit-emoji {
    font-size: 1.5rem;
    flex: 0 0 auto;
}

.auth-free {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
}

/* Deux choix, ou formulaire : jamais les deux à la fois */
.auth-login {
    display: none;
}

.auth-login-open .auth-login {
    display: block;
    animation: authFadeIn .25s ease-out;
}

.auth-login-open .auth-choices {
    display: none;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-login-open .auth-login {
        animation: none;
    }
}

.auth-label {
    display: block;
    margin: 0 0 6px 4px;
    color: rgba(255,255,255,0.72);
    font-size: 0.85rem;
    font-weight: 700;
}

/* Bouton œil dans le champ mot de passe */
.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 56px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: rgba(255,255,255,0.65);
    font-size: 1.2rem;
}

.password-toggle:focus-visible {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
}

.auth-switch a {
    white-space: nowrap;
}

/* Bandeau "Installe l'app" (affiché par le script si l'appareil le permet) */
.auth-install {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-align: left;
}

.auth-install.d-none {
    display: none !important;
}

.auth-install-icon {
    font-size: 1.5rem;
    flex: 0 0 auto;
}

.auth-install-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.auth-install-text span {
    color: rgba(255,255,255,0.62);
    font-size: 0.85rem;
}

.auth-install .bi-chevron-right {
    color: #ffc107;
}
