/* Auth gate — écran affiché si l'utilisateur n'est pas connecté. */

.auth-gate {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-base);
    padding: 24px;
}

.auth-gate.hidden { display: none; }

.auth-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.auth-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
}

.auth-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.5;
}

.auth-scopes {
    text-align: left;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 24px;
    font-size: 12.5px;
    color: var(--text-tertiary);
}

.auth-scopes li { margin: 4px 0; list-style: none; position: relative; padding-left: 18px; }
.auth-scopes li::before {
    content: ''; position: absolute; left: 0; top: 7px;
    width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 16px;
    background: #1877F2;     /* Facebook brand — hardcoded on purpose */
    color: white;
    border: 0;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-base);
}
.auth-btn:hover { background: #145DBF; }
.auth-btn:active { transform: translateY(1px); }
.auth-btn:disabled { opacity: 0.6; cursor: progress; }

.auth-error {
    margin-top: 14px;
    padding: 10px 12px;
    background: color-mix(in srgb, var(--danger) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
    color: var(--danger);
    border-radius: var(--radius-md);
    font-size: 13px;
}

.auth-footer {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
}
.auth-footer a { color: var(--accent); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
