/* modal-auth.css — Modale d'authentification (harmonisée avec le design app.css) */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, 0.6);
    backdrop-filter: blur(3px);
}

.auth-modal-content {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 22px;
    padding: 28px 26px 30px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.22);
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease;
}

.auth-modal.active .auth-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.auth-modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-modal-emoji {
    font-size: 1.7rem;
    animation: authBounce 2.4s infinite;
}

@keyframes authBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.auth-modal-close {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e6e8eb;
    background: #ffffff;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.auth-modal-close:hover {
    border-color: #ff385c;
    color: #ff385c;
}

.auth-modal-subtitle {
    color: #6b7280;
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 4px 0 24px;
}

.auth-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-btn {
    padding: 11px 18px;
    border-radius: 9999px;
    border: 1px solid transparent;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    text-decoration: none;
}

.auth-btn-inscription {
    background: #ff385c;
    color: #fff;
    box-shadow: 0 8px 22px rgba(255, 56, 92, 0.28);
}

.auth-btn-inscription:hover {
    background: #e11d48;
    transform: translateY(-1px);
}

.auth-btn-connexion {
    background: #fff;
    color: #111827;
    border-color: #e6e8eb;
}

.auth-btn-connexion:hover {
    border-color: #111827;
}

/* Mobile : bottom-sheet (feeling PWA) */
@media (max-width: 600px) {
    .auth-modal {
        align-items: flex-end;
        padding: 0;
    }
    .auth-modal-content {
        max-width: none;
        border-radius: 22px 22px 0 0;
        padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px));
        transform: translateY(100%);
    }
    .auth-modal.active .auth-modal-content {
        transform: translateY(0);
    }
    .auth-modal-title { font-size: 1.15rem; }
    .auth-modal-emoji { font-size: 1.35rem; }
    .auth-modal-subtitle { font-size: 0.86rem; margin-bottom: 18px; }
    .auth-btn { font-size: 0.8rem; padding: 10px 16px; gap: 0.4rem; }
    .auth-modal-buttons { gap: 10px; }
}
