/*
 * ARCHIVO: register.css
 * DESCRIPCIÓN: Interfaz de registro de usuarios con validación de seguridad, términos de servicio y diseño adaptativo.
 * SISTEMA: MAESTRO 2026
 */

/* ==========================================================================
   1. VARIABLES Y ESTRUCTURA DE CARD (ANIMACIÓN Y BLUR)
   ========================================================================== */
:root { --primary: #B91C1C; --primary-hover: #7F1D1D; --success: #10b981; --danger: #ef4444; --text-muted: #94a3b8; }
.register-card { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 25px 35px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1); width: 100%; max-width: 480px; transform: scale(0.88); margin: 0 auto; animation: fadeInReg 0.6s ease-out forwards; position: relative; z-index: 10; }

@keyframes fadeInReg { from { opacity: 0; transform: scale(0.8) translateY(20px); } to { opacity: 1; transform: scale(0.88) translateY(0); } }

/* ==========================================================================
   2. FORMULARIOS: INPUTS, LABELS Y MENSAJES DE ESTADO
   ========================================================================== */
.form-row { display: flex; gap: 12px; }
.form-group { margin-bottom: 12px; position: relative; width: 100%; }
.register-card label { font-size: 11px; margin-bottom: 5px; display: block; font-weight: 700; color: #334155; text-transform: uppercase; letter-spacing: 0.5px; }
.register-card input:not([type="checkbox"]) { padding: 10px 15px; font-size: 14px; width: 100%; border-radius: 10px; border: 2px solid #f1f5f9; box-sizing: border-box; transition: all 0.3s; background: rgba(255, 255, 255, 0.9); }
.register-card input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }
.status-msg { font-size: 11px; margin-top: 4px; display: none; font-weight: 600; }

/* ==========================================================================
   3. SEGURIDAD: VALIDACIÓN DE CONTRASEÑA Y REQUERIMIENTOS
   ========================================================================== */
.password-wrapper { position: relative; display: flex; align-items: center; }
.toggle-password { position: absolute; right: 12px; cursor: pointer; color: var(--text-muted); font-size: 14px; z-index: 10; }
.password-requirements { position: absolute; bottom: 120%; left: 0; width: 230px; background: white; padding: 12px; border-radius: 15px; border: 1px solid #e2e8f0; box-shadow: 0 10px 25px rgba(0,0,0,0.1); z-index: 1000; display: none; }
.req-item { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.req-item.valid { color: var(--success); font-weight: 600; }

/* ==========================================================================
   4. TÉRMINOS Y CONDICIONES (CHECKBOX UI)
   ========================================================================== */
.terms-container { display: flex; align-items: center; gap: 8px; margin: 15px 0; cursor: pointer; justify-content: flex-start; }
.terms-container input[type="checkbox"] { width: 16px !important; height: 16px !important; margin: 0; cursor: pointer; flex-shrink: 0; accent-color: var(--primary); }
.terms-container label { font-size: 12px !important; color: #475569; margin: 0 !important; cursor: pointer; text-transform: none !important; letter-spacing: normal !important; display: inline-block; }

/* ==========================================================================
   5. DISEÑO DE MODAL (POLÍTICAS Y AVISOS)
   ========================================================================== */
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(8px); align-items: center; justify-content: center; }
.modal-content { background: #fff; border-radius: 24px; width: 90%; max-width: 650px; max-height: 80vh; overflow: hidden; display: flex; flex-direction: column; position: relative; box-shadow: 0 25px 50px rgba(0,0,0,0.3); animation: modalPop 0.3s ease-out; }
.modal-header { padding: 25px 30px; border-bottom: none; }
.modal-header h2 { font-size: 22px; font-weight: 700; margin: 0; color: #0f172a; }
.modal-body { padding: 0 30px 20px 30px; overflow-y: auto; flex-grow: 1; scroll-behavior: smooth; }
.modal-footer { padding: 20px 30px; text-align: left; border-top: none; }
.terms-disclaimer { background: #eff6ff; padding: 15px; border-radius: 12px; border-left: 4px solid var(--primary); margin-bottom: 20px; color: #1e40af; font-size: 13px; line-height: 1.4; }
.modal-body h4 { color: #0f172a; font-size: 16px; margin: 20px 0 10px 0; font-weight: 700; }
.modal-body p { font-size: 14px; line-height: 1.6; color: #475569; margin-bottom: 15px; text-align: justify; }

@keyframes modalPop { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ==========================================================================
   6. BOTONES DE ACCIÓN Y SUBMIT
   ========================================================================== */
#closeModalBtn { background: #cbd5e1; color: white; padding: 10px 25px; border-radius: 10px; border: none; font-weight: 600; cursor: not-allowed; transition: 0.3s; }
#closeModalBtn.enabled { background: var(--primary); cursor: pointer; }
#closeModalBtn.enabled:hover { background: var(--primary-hover); transform: translateY(-1px); }
.register-card button[type="submit"] { padding: 14px; width: 100%; border-radius: 12px; border: none; background: var(--primary); color: #fff; font-weight: 600; cursor: pointer; transition: all 0.3s; margin-top: 10px; position: relative; overflow: hidden; }
.register-card button:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); }
.register-card button:disabled { background: #cbd5e1; cursor: not-allowed; }

/* ==========================================================================
   7. PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.footer { text-align: center; margin-top: 20px; font-size: 13px; color: #64748b; }
.footer a { color: var(--primary); text-decoration: none; font-weight: 600; }