/**
 * SECTOR: 02 - Autenticación, Registro Categorizado y 2FA
 * URL PLATAFORMA: /assets/css/auth_components.css
 * DESCRIPCIÓN: Componentes de formulario y panel Blindaje de la vista de
 *              autenticación. Fraccionado desde auth.css por el límite de caracteres.
 */

.auth-tabs { display: flex; gap: 18px; margin-bottom: 20px; }
.auth-tab { background: none; border: none; border-bottom: 2px solid transparent; padding: 0 0 8px; color: var(--nexo-text-muted); font: 600 13px 'Space Grotesk', sans-serif; cursor: pointer; }
.auth-tab.active { color: var(--nexo-primary); border-bottom-color: var(--nexo-primary); }
.auth-form { display: none; flex-direction: column; gap: 10px; }
.auth-form.active { display: flex; }
.auth-form label { font: 600 13px 'Space Grotesk', sans-serif; color: var(--nexo-text-muted); margin-top: 6px; }
.auth-pass-wrap { position: relative; display: flex; }
.auth-pass-wrap .nexo-input { width: 100%; }
.auth-pass-eye { position: absolute; right: 12px; top: 12px; color: var(--nexo-text-muted); cursor: pointer; font-size: 20px; }
.auth-submit { width: 100%; border: none; cursor: pointer; margin-top: 14px; padding: 14px; font-size: 15px; }
.auth-check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--nexo-text); cursor: pointer; }
.auth-check a { color: var(--nexo-primary); }
.auth-intents { border: 1px solid var(--nexo-border); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.auth-intents legend { font: 600 12px 'Space Grotesk', sans-serif; color: var(--nexo-text-muted); padding: 0 6px; }
.auth-captcha[hidden] { display: none; }
.auth-terms { margin-top: 4px; }

.auth-toast { border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-bottom: 14px; border: 1px solid var(--nexo-border); }
.auth-toast.error { background: rgba(239, 68, 68, .12); color: var(--red); }
.auth-toast.ok { background: var(--nexo-primary-glow); color: var(--cyan); }
[data-theme="light"] .auth-toast.error { color: #b91c1c; }

.auth-social { margin-top: 26px; }
.auth-social-sep { display: flex; align-items: center; gap: 12px; color: var(--nexo-text-muted); font-size: 13px; margin-bottom: 16px; }
.auth-social-sep::before, .auth-social-sep::after { content: ''; flex: 1; border-top: 1px solid var(--nexo-border); }
.auth-social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-social-btn { padding: 12px; border-radius: 10px; border: 1px solid var(--nexo-border); background: var(--nexo-surface); color: var(--nexo-text-muted); font: 600 14px 'Space Grotesk', sans-serif; cursor: not-allowed; opacity: .55; }

.auth-blindaje { border-left: 1px solid var(--nexo-border); padding-left: 40px; display: flex; flex-direction: column; gap: 20px; }
.auth-blindaje h3 { display: flex; gap: 8px; align-items: center; color: var(--nexo-secondary); font-size: 22px; margin: 0; }
.auth-qr-placeholder { border: 2px dashed var(--nexo-border); border-radius: 14px; padding: 26px; text-align: center; color: var(--nexo-text-muted); }
.auth-qr-placeholder .material-symbols-outlined { font-size: 52px; opacity: .35; }
.auth-qr-placeholder p { font-size: 13px; margin: 10px 0 0; }
.auth-blindaje-actions { display: flex; flex-direction: column; gap: 12px; }
.auth-blindaje-btn { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; border: 1px solid var(--nexo-border); background: var(--nexo-surface); color: var(--nexo-text); text-align: left; cursor: not-allowed; opacity: .55; }
.auth-blindaje-btn .material-symbols-outlined { color: var(--nexo-primary); }
.auth-blindaje-btn small { display: block; color: var(--nexo-text-muted); }
.auth-blindaje-note { font-size: 12px; font-style: italic; color: var(--nexo-secondary); border: 1px solid var(--nexo-border); border-radius: 10px; padding: 12px; display: flex; gap: 6px; align-items: flex-start; margin: 0; }

/* Modal de conflicto de sesión en 2FA (reemplaza window.confirm) */
.auth-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.auth-modal[hidden] { display: none; }
.auth-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); }
.auth-modal-card { position: relative; width: min(92vw, 450px); padding: 28px; text-align: center; background: var(--bg-card); border: 1px solid var(--border-color-strong); box-shadow: 0 15px 50px rgba(0,0,0,0.6); }
.auth-modal-head { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 16px; }
.auth-modal-head .material-symbols-outlined { font-size: 42px; color: var(--nexo-primary); }
.auth-modal-head h3 { margin: 0; font-size: 20px; color: var(--nexo-text); }
.auth-modal-body { font-size: 14px; line-height: 1.55; color: var(--nexo-text-muted); margin: 0 0 22px; }
.auth-modal-actions { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.auth-modal-actions .nexo-btn-primary,
.auth-modal-actions .nexo-btn-secondary,
.auth-modal-actions .nexo-btn-tertiary { width: 100%; padding: 12px 18px; border-radius: 10px; font: 600 14px 'Space Grotesk', sans-serif; cursor: pointer; border: 1px solid var(--nexo-border); transition: all 0.2s ease; }
.auth-modal-actions .nexo-btn-primary { background: var(--nexo-primary); color: #050b14; border-color: var(--nexo-primary); }
.auth-modal-actions .nexo-btn-secondary { background: transparent; color: var(--nexo-text); }
.auth-modal-actions .nexo-btn-tertiary { background: var(--bg-secondary); color: var(--nexo-text); border-color: var(--nexo-border); font-weight: 500; }
.auth-modal-actions .nexo-btn-tertiary:hover, .auth-modal-actions .nexo-btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--nexo-border-glow); }
[data-theme="light"] .auth-modal-backdrop { background: rgba(255,255,255,.45); }
[data-theme="light"] .auth-modal-actions .nexo-btn-primary { color: #fff; }
