/* Protección básica contra scroll horizontal en páginas del portal.
    Se aplica solo donde se carga esta hoja (login/register del portal). */
html,
body {
     overflow-x: hidden;
}

/* Layout ancho opcional para páginas de autenticación del portal NeuraPRO.
    Solo se aplica cuando el body tiene la clase .auth-layout-wide.
    Se usa principalmente en /register para dar un aspecto más SaaS. */
/* Ajuste de ancho y padding para vistas anchas del portal (ej: /register).
    Mantenemos un card más compacto (~840px) para sensación premium de auth. */
.auth-layout-wide .container {
      max-width: 840px; /* Ancho objetivo ~820-860px, más cercano a un auth card clásico */
     padding: 20px 20px; /* Ligera reducción extra para ayudar a evitar scroll vertical */
}

/* === Tokens y refinamientos compartidos para /login (sin .auth-layout-wide) ===
   Estas reglas ajustan el card del login para alinearlo visualmente con /register
   sin tocar el contrato del backend ni el layout amplio de registro. */

/* Card de login ligeramente más ancho que el diseño original (~560px). */
body:not(.auth-layout-wide) .container {
    max-width: 560px; /* Rango objetivo 520–600px para páginas de login compactas. */
}

/* Tipografía de encabezado/subtítulo de login, alineada con el estilo de /register. */
body:not(.auth-layout-wide) .header h1 {
    font-size: 26px;
    margin-bottom: 6px;
}

body:not(.auth-layout-wide) .header .subtitle {
    font-size: 14px;
}

/* Altura de inputs en login: mismos tamaños que /register para coherencia. */
body:not(.auth-layout-wide) .container input[type="text"],
body:not(.auth-layout-wide) .container input[type="email"],
body:not(.auth-layout-wide) .container input[type="password"] {
    padding: 10px;
    font-size: 14px;
}

/* Fila combinada de "Recordarme" + "¿Olvidaste tu contraseña?" en /login. */
body:not(.auth-layout-wide) .login-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

body:not(.auth-layout-wide) .login-actions-row .login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

body:not(.auth-layout-wide) .login-actions-row .forgot-password {
    margin: 0; /* Evitamos márgenes negativos heredados en login */
}

/* Control "Mostrar contraseña" en /login con aspecto de enlace premium,
   reutilizando el mismo checkbox/JS para mantener comportamiento y accesibilidad. */
body:not(.auth-layout-wide) #toggleRow {
    justify-content: flex-end;
    gap: 6px;
    font-size: 13px;
    color: #2563eb;
    margin-top: 4px;
    margin-bottom: 12px;
}

body:not(.auth-layout-wide) #toggleRow input[type="checkbox"] {
    position: absolute; /* Ocultamos visualmente el checkbox pero lo mantenemos accesible */
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

/* Caja de información azul en /login más sutil y compacta. */
body:not(.auth-layout-wide) .info-panel {
    background: #eff6ff;
    border-color: #dbeafe;
    padding: 12px;
    margin-top: 16px;
    font-size: 13px;
}

/* Ajustes de cabecera solo para layouts anchos (ej: /register):
   reducimos altura visual del H1/subtítulo para evitar scroll vertical. */
.auth-layout-wide .register-layout-container .header {
    margin-bottom: 6px; /* Acerca la franja de beneficios al título/subtítulo */
}

.auth-layout-wide .register-layout-container .header h1 {
    font-size: 24px;      /* Más compacto que el H1 por defecto */
    margin-bottom: 4px;   /* Reducimos margen inferior */
}

.auth-layout-wide .register-layout-container .subtitle {
    font-size: 14px;      /* Ligeramente más pequeña */
    margin-top: 0;
    margin-bottom: 8px;   /* Espaciado más compacto bajo el título */
}

/* Cabecera de autenticación específica del registro con logo alineado
   a la derecha. Se limita al layout ancho para no afectar /login. */
.auth-layout-wide .register-layout-container .auth-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px; /* Más aire entre título y logo */
}

.auth-layout-wide .register-layout-container .auth-header-text {
    flex: 1;
    min-width: 0;
}

/* Área reservada para el logo en /register: ocupa el espacio libre
   de la derecha sin empujar el contenido hacia abajo. */
.auth-layout-wide .register-layout-container .register-logo {
    flex: 0 0 auto;
    width: 180px;   /* ancho generoso, pero altura más compacta */
    height: 88px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

@media (max-width: 1024px) {
    .auth-layout-wide .register-layout-container .register-logo {
        width: 160px;
        height: 78px;
    }
}

@media (max-width: 768px) {
    .auth-layout-wide .register-layout-container .register-logo {
        width: 140px;
        height: 72px;
    }
}

/* El logo rellena su contenedor sin deformarse. */
.auth-layout-wide .register-layout-container .auth-brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    image-rendering: auto;
    opacity: 0.95;
    margin-top: 0;
}

/* Contenedor principal del registro en una sola columna.
   Centrado y compacto para un aspecto de auth card. */
.register-layout {
    max-width: 880px;
    margin: 8px auto 0 auto; /* Separación suave respecto al encabezado */
}

/* Franja de confianza sobre el formulario (misma anchura que el card),
   diseñada como una línea de confianza sutil por encima de los campos. */
.register-trust-strip {
    margin-bottom: 8px; /* Ligera separación antes de "Datos de cuenta" */
}

/* Línea compacta de beneficios en /register: sin caja ni borde, para
   reducir ruido visual y mantener el foco en el formulario. */
.register-benefits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;       /* Separación uniforme entre ítems y puntos */
    font-size: 12px; /* Línea de confianza aún más discreta */
    line-height: 1.3;
    color: #6b7280;
}

.register-benefits-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.register-benefits-separator {
    color: #9ca3af; /* Separador suave entre beneficios */
}

/* Secciones del formulario de registro. */
.register-section {
    margin-bottom: 16px; /* Aún más compacto entre secciones para evitar scroll */
}

.register-section__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #181c25;
}

.register-section__subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 12px 0; /* Menos espacio bajo subtítulos */
}

/* Texto de ayuda breve bajo un campo específico (por ejemplo, Empresa). */
.register-field-helper {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

/* Marca visual discreta para indicar campos opcionales junto a la etiqueta. */
.register-label-optional {
    font-weight: 400;
    font-size: 12px;
    color: #6b7280;
    margin-left: 4px;
}

/* Grupo de opciones para la intención de inicio (plan_intent): compacto y
   legible, pensado como apoyo ligero antes del CTA principal. */
.register-intent-helper {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 8px 0;
}

/* Grupo de cards para plan_intent: grid responsivo que permite 3 en
   desktop y se apila en móvil. */
.register-intent-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.register-intent-card {
    display: flex;
    align-items: stretch;
    cursor: pointer;
    min-width: 0; /* Evita que el contenido de la card fuerce scroll horizontal */
}

.register-intent-card input[type="radio"] {
    position: absolute; /* Ocultamos el círculo, la card actúa como label */
    opacity: 0;
}

.register-intent-card-body {
    flex: 1;
    border-radius: 10px;
    border: 1px solid var(--portal-border-light);
    background: #f9fafb;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out, background-color 0.15s ease-out;
}

.register-intent-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.register-intent-card-text {
    font-size: 13px;
    color: #6b7280;
}

.register-intent-card:hover .register-intent-card-body {
    background: #f3f4f6;
}

.register-intent-card input[type="radio"]:focus-visible + .register-intent-card-body {
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.register-intent-card input[type="radio"]:checked + .register-intent-card-body {
    border-color: #2563eb;
    background: #eff6ff;
}

/* Grid de campos dentro de cada sección. */
.register-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px; /* separación horizontal entre columnas */
    row-gap: 10px;    /* 10px entre campos apilados para vista aún más compacta */
}

/* Aseguramos que las celdas del grid de registro puedan encoger sin
   provocar overflow horizontal en pantallas más estrechas. */
.register-form-grid > .register-field {
    min-width: 0;
}

/* Campos que deben ocupar todo el ancho del grid. */
.register-field--full {
    grid-column: 1 / -1;
}

/* Ajustes para inputs/select dentro del formulario de registro. */
.register-form-grid label {
    margin-bottom: 6px; /* 8px → 6px label → input para ahorrar altura */
    font-size: 13px;   /* Etiquetas ligeramente más pequeñas */
    font-weight: 600;
}

.register-form-grid input,
.register-form-grid select {
    margin-bottom: 0; /* el row-gap se encarga del espacio vertical */
}

/* Fila de términos y botón de envío. */
.register-terms-row {
    display: flex;
    align-items: flex-start;
    gap: 8px; /* 8px entre checkbox y texto */
    margin: 6px 0 14px 0; /* Reducimos levemente el espacio previo al CTA */
    font-size: 14px;
    color: #4b5563;
}

.register-terms-row a {
    color: var(--color-primary);         /* Mismo tono que otros links del portal */
    text-decoration: underline; /* Siempre subrayado para que se note */
    font-weight: 600;
}

.register-terms-row a:hover {
    text-decoration: underline;
}

/* Modal ligero para ver los Términos y Condiciones dentro de /register
   sin abandonar el formulario. Se limita al layout ancho del portal. */
.auth-layout-wide .register-layout-container .portal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45);
    z-index: 40;
}

.auth-layout-wide .register-layout-container .portal-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
    max-width: 720px;
    width: calc(100% - 40px);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 50;
    padding: 24px 24px 20px;
}

.auth-layout-wide .register-layout-container .portal-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Alineamos arriba y compensamos la X con margen */
    gap: 8px;
    margin-bottom: 12px;
}

.auth-layout-wide .register-layout-container .portal-modal__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    padding-right: 44px; /* Espacio para el botón de cierre absoluto en la esquina */
}

.auth-layout-wide .register-layout-container .portal-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 20px;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.15s ease-out, opacity 0.15s ease-out;
}

.auth-layout-wide .register-layout-container .portal-modal__close:hover {
    background-color: rgba(148, 163, 184, 0.12);
    opacity: 0.9;
}

.auth-layout-wide .register-layout-container .portal-modal__body {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

.auth-layout-wide .register-layout-container .portal-modal__body h3 {
    font-size: 15px;
    margin-top: 16px;
    margin-bottom: 8px;
}

.auth-layout-wide .register-layout-container .portal-modal__body p {
    margin: 0 0 8px 0;
}

.auth-layout-wide .register-layout-container .portal-modal--hidden {
    display: none;
}

/* Mensaje de error ligero para validaciones específicas en /register
   (por ejemplo, industria requerida cuando se elige trial). */
.register-field-error {
    margin-top: 6px;
    font-size: 13px;
    color: #b91c1c;
}

.register-terms-row input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

/* Fila del CTA: bloque centrado con botón principal seguido por
   texto de ayuda sutil, pensado como cierre claro del flujo. */
.register-submit-row {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px; /* Separación clara pero compacta entre botón y texto de ayuda */
}

/* Estilo sutil para el select de plan, manteniendo los valores existentes. */
.register-plan-select {
    width: 100%;
    padding: 10px; /* Ligeramente más compacto que los inputs por defecto */
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 15px;
}

.register-plan-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Fila para el toggle de mostrar/ocultar contraseñas en registro. */
.register-password-toggle {
    margin-top: 6px;
    text-align: right; /* Colocamos el toggle cerca del bloque de contraseña, visualmente alineado a la derecha */
}

/* Ajustes de tamaño de campos solo para /register: reducimos altura
   pero mantenemos contraste y focus ring consistentes. */
.auth-layout-wide .register-layout-container input[type="text"],
.auth-layout-wide .register-layout-container input[type="email"],
.auth-layout-wide .register-layout-container input[type="password"],
.auth-layout-wide .register-layout-container select {
    padding: 10px;
    font-size: 14px;
}

/* Pista pequeña bajo el botón de envío. */
.register-submit-hint {
    margin-top: 0; /* Deja que el gap de la fila controle el espacio vertical */
    font-size: 13px;
    color: #6b7280;
}

/* Botón de envío: ancho fijo en desktop, pero full-width en mobile.
    Mantiene el mismo texto y comportamiento JS ya definidos. */
.auth-layout-wide .register-layout-container .register-submit-row button[type="submit"] {
    width: 340px;          /* Dentro del rango 320–360px pedido */
    max-width: 100%;
    display: inline-block;
}


/* Footer específico de /register: espaciado más compacto y cercano al formulario. */
.auth-layout-wide .register-layout-container .footer {
    margin-top: 8px;  /* 6–8px por debajo del texto de verificación */
    padding-top: 6px;
    border-top: 0;     /* Eliminamos la línea extra para evitar doble separador visual */
}

/* Estilo más "link" para el control de mostrar contraseñas del registro,
   reutilizando los mismos IDs/JS existentes para no romper funcionalidad. */
.register-password-toggle .toggle-row {
    justify-content: flex-end;
    gap: 6px;
    font-size: 13px;
    color: #2563eb;
}

.register-password-toggle .toggle-row input[type="checkbox"] {
    position: absolute; /* Ocultamos visualmente el checkbox pero lo mantenemos accesible */
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

/* Responsivo: en pantallas pequeñas, las columnas se apilan. */
@media (max-width: 768px) {
    .auth-layout-wide .container {
        max-width: 100%;
    }

    .register-form-grid {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
    }

    /* En móvil, el botón vuelve a ocupar todo el ancho disponible. */
    .auth-layout-wide .register-layout-container .register-submit-row button[type="submit"] {
        width: 100%;
        max-width: 100%;
    }
}

/* ========== Registro Figma: 100vh no-scroll, split form|imagen, card 640px (Figma) ========== */
body.register-page-figma {
    overflow: hidden;
    height: 100vh;
}

.register-page-figma {
    font-family: 'Inter', 'DM Sans', 'Segoe UI', sans-serif;
    background: var(--color-background);
    margin: 0;
    padding: 0;
}

/* Wrapper: exactamente 100vh, sin scroll en desktop. */
.register-figma-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.register-figma-top-strip {
    display: none;
}

.register-figma-page {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 0;
    width: 100%;
    flex: 1;
    min-height: 0;
}

/* Columna izquierda: centra el card, fondo var(--color-background). */
.register-figma-left {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 24px 40px;
    flex: none;
    order: 0;
    flex-grow: 1;
    min-width: 0;
    min-height: 0;
    background: var(--color-background);
}

/* Contenedor del card: 796px (Figma), centrado, max-height para no provocar scroll. */
.register-figma-left-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 12px 0 0;
    width: 796px;
    max-width: 100%;
    max-height: 100%;
    flex: none;
    order: 1;
    flex-grow: 0;
}

/* Card: altura limitada sin scroll; el recorte del boton se evita haciendo caber el contenido (menos gaps). */
.register-figma-card {
    width: 100%;
    max-width: 640px;
    max-height: min(900px, calc(100vh - 12px));
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: 24px;
    padding: 8px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.register-figma-card .header {
    margin-bottom: 0;
    width: 100%;
    flex-shrink: 0;
}

.register-figma-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 32px 8px;
    gap: 10px;
    width: 100%;
    max-width: 574px;
    margin: 0 auto;
}

/* Figma: 30px, line-height 39px */
.register-figma-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 39px;
    text-align: center;
    color: var(--color-text-primary);
    margin: 0;
    width: 100%;
}

/* Figma: padding 8px 16px, gap 8px */
.register-figma-pill {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 16px;
    gap: 8px;
    background: #E7FAFD;
    border-radius: 9999px;
}

.register-figma-pill-icon {
    font-size: 18px;
    line-height: 18px;
    color: #00D1FF;
}

.register-figma-pill span:last-child {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    color: #00D1FF;
}

/* Figma: gap 16px, 14px line-height 18px */
.register-figma-benefits {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 18px;
    color: var(--color-text-tertiary);
}

.register-figma-benefit-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.register-figma-benefit-icon {
    font-size: 18px;
    line-height: 18px;
    color: var(--color-alert-success);
}

.register-figma-benefit-dot {
    width: 4px;
    height: 4px;
    background: var(--color-border-input);
    border-radius: 9999px;
    flex-shrink: 0;
}

/* Sin scroll: contenido debe caber dentro del card; padding para que el formulario respire. */
.register-figma-form-wrap {
    width: 100%;
    padding: 8px 32px 20px;
    flex: 1;
    min-height: 0;
    overflow: visible;
}

/* Lead junto al formulario: refuerzo emocional sin duplicar el panel imagen (register). 2026-04-07 */
.register-figma-form-lead {
    box-sizing: border-box;
    max-width: 574px;
    margin: 0 auto 12px;
    padding: 0 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.35;
    text-align: center;
    color: var(--color-text-primary);
}

.register-figma-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 574px;
    margin: 0 auto;
}

/* Grid: misma altura en ambas columnas (inputs alineados). */
.register-figma-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.register-figma-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* Figma: 14px line-height 18px */
.register-figma-field label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: var(--color-text-primary);
    margin: 0;
}

.register-figma-label-optional {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: var(--color-text-tertiary);
}

/* Inputs: misma altura (44px) y padding para que todos se vean igual y alineados. */
.register-figma-field input,
.register-figma-field textarea {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    background: #FBFCFC;
    border: 1px solid var(--color-border-input);
    border-radius: 10px;
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.25;
    color: var(--color-text-primary);
    margin: 0;
}

.register-figma-field textarea {
    height: auto;
    min-height: 44px;
    resize: vertical;
}

.register-figma-field input::placeholder,
.register-figma-field textarea::placeholder {
    color: var(--color-text-tertiary);
}

/* Focus sutil: solo borde y anillo fino, sin rellenar el campo de azul. */
.register-figma-field input:focus,
.register-figma-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(25, 118, 210, 0.25);
    background-color: #FBFCFC;
}

.register-figma-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.register-figma-input-with-icon input {
    padding-right: 44px;
}

.register-figma-input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    line-height: 20px;
    color: var(--color-text-tertiary);
    pointer-events: none;
}

/* Wrapper relativo para que el boton del ojo no tape el input. Input con padding-right
   para zona de escritura libre; boton con tamano acotado y z-index para no bloquear clicks. */
.register-figma-password-wrap {
    position: relative;
}
.register-figma-password-wrap input {
    padding-right: 44px;
    flex: 1 1 auto;
    min-width: 0;
}

.register-figma-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--color-text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.register-figma-password-toggle .material-icons {
    font-size: 20px;
}

.register-figma-password-toggle:hover {
    color: var(--color-text-secondary);
}

/* Ayuda bajo contraseña: gap 8px, 12px line-height 15px */
.register-figma-helper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 15px;
    color: var(--color-text-tertiary);
    margin-top: 2px;
}

.register-figma-helper-icon {
    font-size: 16px;
    line-height: 16px;
    color: var(--color-text-tertiary);
    flex-shrink: 0;
}

/* Fila de términos: gap 12px, un poco de margen superior para separar del helper */
.register-figma-terms-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    margin-top: 4px;
}

/* Figma: 14px line-height 18px */
.register-figma-terms-row label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: var(--color-text-tertiary);
    cursor: pointer;
    margin: 0;
}

.register-figma-terms-row a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: var(--color-primary);
    text-decoration: none;
}

.register-figma-terms-row a:hover {
    text-decoration: underline;
}

.register-figma-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.register-figma-info-box {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 14px;
    gap: 10px;
    margin: 6px 0 14px;
    background: var(--portal-info-bg);
    border: 1px solid var(--portal-info-border);
    border-radius: 10px;
}

.register-figma-info-box .material-icons {
    font-size: 20px;
    line-height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Figma: 14px line-height 17px */
.register-figma-info-box p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: var(--color-primary);
    margin: 0;
}

/* CTA principal: flex centrado (texto en columna + flecha); ancho completo del formulario; sin pastilla blanca. 2026-04-08 */
.register-figma-btn-submit {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
    padding: 14px 22px;
    min-height: 56px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 14px;
    flex-shrink: 0;
    background: var(--color-primary);
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    color: var(--color-text-inverse);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(25, 118, 210, 0.28);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s ease;
}

.register-figma-btn-submit:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.95);
    outline-offset: 3px;
}

.register-figma-btn-submit:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 4px 14px rgba(25, 118, 210, 0.35);
}

.register-figma-btn-submit:hover .register-figma-btn-submit-arrow {
    transform: translateX(2px);
}

.register-figma-btn-submit:active:not(:disabled) {
    transform: scale(0.99);
}

.register-figma-btn-submit:disabled {
    opacity: 0.85;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.register-figma-btn-submit-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    text-align: center;
}

.register-figma-btn-submit-label {
    font-weight: 700;
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.register-figma-btn-submit-sub {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.88);
}

.register-figma-btn-submit-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px !important;
    line-height: 22px !important;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: 0.95;
    transition: transform 0.15s ease;
}

.register-figma-contact-panel {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--color-border-input);
    border-radius: 12px;
    background: var(--color-background);
}

.register-figma-btn-secondary {
    padding: 12px 16px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.register-figma-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.register-figma-link:hover {
    text-decoration: underline;
}

.register-figma-card .footer {
    width: 100%;
    margin-top: 0;
    padding: 0 32px;
    border-top: 1px solid var(--color-border-subtle);
    background: var(--portal-page-bg);
    border-radius: 0 0 24px 24px;
    flex-shrink: 0;
}

.register-figma-card-footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.register-figma-footer-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
    color: #7B8CA3;
    text-decoration: none;
}

.register-figma-footer-link .material-icons {
    font-size: 18px;
    line-height: 18px;
    color: var(--color-text-secondary);
}

.register-figma-footer-link:hover {
    color: var(--portal-text-muted);
}

.register-figma-footer-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
    color: #7B8CA3;
}

.register-figma-footer-text a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.register-figma-footer-text a:hover {
    text-decoration: underline;
}

.register-figma-strip {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 6px 32px 8px;
    gap: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 15px;
    color: var(--color-text-tertiary);
    border-top: 1px solid var(--color-border-subtle);
}

.register-figma-strip .material-icons {
    font-size: 16px;
    line-height: 16px;
    color: var(--color-text-tertiary);
    margin-right: 4px;
}

.register-figma-strip-item {
    display: inline-flex;
    align-items: center;
}

/* Panel derecho: 720px fijo, altura 100% (Figma), solo imagen o overlay minimal. */
.register-figma-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0;
    width: 720px;
    flex: none;
    order: 2;
    flex-grow: 0;
    align-self: stretch;
    /* Imagen hero /register: sora/registrarportal_1.png (misma convencion que login sora/loginportal_1.png). 2026-04-07 */
    background: var(--portal-heading) url('/portal-static/images/sora/registrarportal_1.png') center/cover no-repeat;
    position: relative;
    isolation: isolate;
}

/* Velo ligero en toda el area: baja protagonismo de la foto sin apagarla (conversion /register). 2026-04-07 */
.register-figma-right::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 0;
}

/* Overlay suave en la parte inferior para copy de marketing legible. */
.register-figma-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.14) 45%, transparent 58%);
    pointer-events: none;
    z-index: 0;
}

.register-figma-right-overlay {
    position: relative;
    padding: 32px 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    z-index: 1;
}

.register-figma-right-badge {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-text-primary);
}

/* Headline panel imagen /register: escala amplia y ancho del overlay (sin max-width angosto). 2026-04-07 */
.register-figma-right-headline {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin: 0;
    width: 100%;
    max-width: 100%;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 2px 14px rgba(0, 0, 0, 0.28);
}

/* Una sola linea en layout dos columnas (panel ~720px); en movil apilado se permite envolver. */
@media (min-width: 1025px) {
    .register-figma-right-headline {
        white-space: nowrap;
    }
}

/* Sublínea: mismo ancho util que el headline; tipografia secundaria clara. */
.register-figma-right-subline {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    width: 100%;
    max-width: 100%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Errores dentro del card Figma */
.register-figma-card .errors {
    max-width: 574px;
    margin: 0 auto 8px;
    width: 100%;
    padding: 12px 16px;
}

/* Responsivo registro Figma: desktop = form + imagen juntos; desde 1024px se apila. */
@media (max-width: 1024px) {
    /*
     * 2026-04-05: Scroll en registro movil (formulario largo + overflow:hidden cortaba la imagen).
     * 2026-04-05: Mismo orden que /login — card arriba, franja fotografica abajo (sin order en DOM).
     */
    body.register-page-figma {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .register-figma-wrapper {
        height: auto;
        max-height: none;
        min-height: 100vh;
        overflow: visible;
    }

    .register-figma-page {
        flex-direction: column;
        flex: 1 1 auto;
    }

    .register-figma-right {
        width: 100%;
        min-width: 0;
        min-height: 320px;
        flex-shrink: 0;
    }

    .register-figma-left {
        align-items: flex-start;
        padding: 32px 24px;
    }

    .register-figma-left-inner {
        width: 100%;
        max-height: none;
    }

    .register-figma-card {
        max-height: none;
    }

    .register-figma-right-overlay {
        padding: 24px 20px 28px;
    }

    .register-figma-form-lead {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .register-figma-right-headline {
        font-size: 24px;
        line-height: 1.2;
    }

    .register-figma-right-subline {
        font-size: 15px;
        line-height: 1.48;
    }
}

/* Solo en movil/tablet: permitir scroll interno en el card si el contenido no cabe. */
@media (max-width: 1023px) {
    .register-figma-form-wrap {
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .register-figma-form-grid {
        grid-template-columns: 1fr;
    }

    .register-figma-card-header,
    .register-figma-form {
        max-width: 100%;
    }

    .register-figma-card-footer {
        flex-direction: column;
        gap: 12px;
    }

    .register-figma-btn-submit {
        max-width: 100%;
    }
}

/* ========== Login Figma: 100vh no-scroll, split card|imagen (pixel-perfect con diseno) ========== */
body.login-page-figma {
    overflow: hidden;
    height: 100vh;
}

.login-page-figma {
    font-family: 'Inter', 'DM Sans', 'Segoe UI', sans-serif;
    background: var(--color-background);
    margin: 0;
    padding: 0;
}

.login-figma-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.login-figma-page {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 0;
    width: 100%;
    flex: 1;
    min-height: 0;
}

.login-figma-left {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 48px 80px;
    flex: none;
    order: 0;
    flex-grow: 1;
    min-width: 0;
    min-height: 0;
    background: var(--color-background);
}

.login-figma-left-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 32px;
    width: 796px;
    max-width: 100%;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.login-figma-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 600px;
    max-width: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: 24px;
    padding: 0;
    flex: none;
    flex-grow: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* Anula .container del base (max-width 420px en login_base) cuando es card de login Figma. */
.login-page-figma .container.login-figma-card {
    max-width: 600px !important;
    width: 600px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.login-figma-card .header {
    margin-bottom: 0;
    width: 100%;
    flex-shrink: 0;
}

.login-figma-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 32px 16px;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.login-figma-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 39px;
    text-align: center;
    color: var(--color-text-primary);
    margin: 0;
    width: 100%;
}

.login-figma-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    text-align: center;
    color: var(--color-text-secondary);
    margin: 0;
}

.login-figma-form-wrap {
    width: 100%;
    min-width: 0;
    padding: 8px 32px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

.login-figma-form {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 16px;
    min-width: 0;
    width: 100%;
}

.login-figma-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.login-figma-field label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: var(--color-text-primary);
    margin: 0;
}

.login-figma-field input {
    box-sizing: border-box;
    width: 100%;
    height: 50px;
    padding: 12px 16px;
    background: #FBFCFC;
    border: 1px solid var(--color-border-input);
    border-radius: 12px;
    font-family: 'DM Sans', Inter, sans-serif;
    font-size: 16px;
    line-height: 21px;
    color: var(--color-text-primary);
    margin: 0;
}

.login-figma-field input::placeholder {
    color: var(--color-text-tertiary);
}

.login-figma-field input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(25, 118, 210, 0.25);
}

.login-figma-input-with-icon {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-width: 0;
}

.login-figma-input-with-icon .login-figma-input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    line-height: 20px;
    color: var(--color-text-tertiary);
    pointer-events: none;
}

.login-figma-input-with-icon input {
    padding-right: 44px;
}

.login-figma-password-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
}

.login-figma-password-wrap input {
    padding-right: 44px;
}

.login-figma-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--color-text-tertiary);
    cursor: pointer;
    padding: 0;
}

.login-figma-password-toggle:hover {
    color: var(--color-text-secondary);
}

.login-figma-password-toggle .material-icons {
    font-size: 20px;
    line-height: 20px;
}

.login-figma-actions-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.login-figma-remember {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
}

.login-figma-remember input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--color-primary);
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid var(--color-border-input);
}

.login-figma-remember label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: var(--color-text-secondary);
    cursor: pointer;
    margin: 0;
}

.login-figma-forgot {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    color: var(--color-primary);
    text-decoration: none;
}

.login-figma-forgot:hover {
    text-decoration: underline;
}

.login-figma-btn-submit {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 14px 24px;
    gap: 14px;
    min-height: 52px;
    width: 100%;
    margin: 0;
    background: var(--color-primary);
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
    text-align: center;
    color: var(--color-text-inverse);
    cursor: pointer;
    transition: background 0.2s;
}

.login-figma-btn-submit:hover {
    background: var(--color-primary-hover);
}

.login-figma-card .footer {
    width: 100%;
    margin-top: 0;
    padding: 0 32px;
    border-top: 1px solid var(--color-border-subtle);
    background: var(--portal-page-bg);
    border-radius: 0 0 24px 24px;
    flex-shrink: 0;
}

.login-figma-footer-inner {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    gap: 2px;
}

.login-figma-footer-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    color: var(--color-text-secondary);
}

.login-figma-footer-text a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.login-figma-footer-text a:hover {
    text-decoration: underline;
}

.login-figma-strip {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 6px 32px 10px;
    gap: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 15px;
    color: var(--color-text-tertiary);
}

.login-figma-strip .material-icons {
    font-size: 16px;
    line-height: 16px;
    color: var(--color-text-tertiary);
    margin-right: 4px;
}

.login-figma-strip-item {
    display: inline-flex;
    align-items: center;
}

/*
 * Panel imagen /login: misma pila visual y tipografia que .register-figma-right (tamano, interlineado, overlay).
 * Solo cambia la imagen de fondo y el copy. 2026-04-07
 */
.login-figma-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0;
    width: 720px;
    flex: none;
    order: 2;
    flex-grow: 0;
    align-self: stretch;
    background: var(--portal-heading) url('/portal-static/images/sora/loginportal_1.png') center/cover no-repeat;
    position: relative;
    isolation: isolate;
}

/* Mismo velo global que /register: baja ruido de la foto sin apagarla. */
.login-figma-right::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 0;
}

/* Gradiente inferior igual criterio que .register-figma-right::before (legibilidad del copy). */
.login-figma-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.14) 45%, transparent 58%);
    pointer-events: none;
    z-index: 0;
}

/* Mismas reglas que .register-figma-right-overlay (sin max-width: el bloque usa todo el ancho util del panel). */
.login-figma-right-overlay {
    position: relative;
    padding: 32px 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    z-index: 1;
}

/* Identico a .register-figma-right-headline */
.login-figma-right-headline {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin: 0;
    width: 100%;
    max-width: 100%;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 2px 14px rgba(0, 0, 0, 0.28);
}

@media (min-width: 1025px) {
    .login-figma-right-headline {
        white-space: nowrap;
    }
}

/* Identico a .register-figma-right-subline */
.login-figma-right-subline {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    width: 100%;
    max-width: 100%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.login-figma-card .errors {
    max-width: 574px;
    margin: 0 auto 8px;
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .login-figma-page {
        flex-direction: column;
    }
    .login-figma-left {
        padding: 32px 24px;
    }
    .login-figma-right {
        width: 100%;
        min-height: 320px;
    }

    /* Misma escala movil que .register-figma-right-* en este breakpoint. */
    .login-figma-right-overlay {
        padding: 24px 20px 28px;
    }

    .login-figma-right-headline {
        font-size: 24px;
        line-height: 1.2;
    }

    .login-figma-right-subline {
        font-size: 15px;
        line-height: 1.48;
    }
}

@media (max-width: 768px) {
    .login-page-figma .container.login-figma-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    .login-figma-left {
        padding: 24px 16px;
    }
    .login-figma-card-header {
        padding: 24px 24px 12px;
    }
    .login-figma-form-wrap {
        padding: 8px 24px;
    }
    .login-figma-btn-submit {
        max-width: 100%;
    }
}

/* ========== Confirma tu correo (register-success) - Figma ========== */
.confirm-email-page {
    font-family: 'DM Sans', 'Inter', sans-serif;
    background: var(--color-background);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.confirm-email-page .container.confirm-email-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    gap: 22px;
    max-width: 544px;
    width: 100%;
    background: var(--color-surface);
    border: 1px solid #F3F4F6;
    border-radius: 24px;
    margin: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.confirm-email-card .header {
    margin-bottom: 0;
    width: 100%;
}

.confirm-email-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 8px;
    width: 100%;
}

.confirm-email-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 31px;
    text-align: center;
    color: var(--portal-heading-dark);
    margin: 0;
    width: 100%;
}

.confirm-email-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    color: var(--color-text-secondary);
    margin: 0;
}

.confirm-email-info {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    gap: 16px;
    width: 100%;
    max-width: 430px;
    background: var(--portal-info-bg);
    border: 1px solid var(--portal-info-border);
    border-radius: 16px;
}

.confirm-email-info-p,
.confirm-email-info-small {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    color: #374151;
    margin: 0;
}

.confirm-email-info-small {
    font-size: 12px;
    line-height: 16px;
    color: #6B7280;
}

.confirm-email-btn-wrap {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 430px;
}

.confirm-email-btn {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 32px;
    gap: 8px;
    min-height: 52px;
    background: var(--color-primary);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 21px;
    text-align: center;
    color: var(--color-text-inverse);
    text-decoration: none;
    transition: background 0.2s;
}

.confirm-email-btn:hover {
    background: var(--color-primary-hover);
}

.confirm-email-btn .material-icons {
    font-size: 18px;
    line-height: 18px;
}

.confirm-email-hr {
    box-sizing: border-box;
    width: 100%;
    max-width: 430px;
    height: 0;
    margin: 0;
    border: none;
    border-top: 1px solid #E5E7EB;
}

.confirm-email-resend {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    width: 100%;
    max-width: 430px;
}

.confirm-email-resend-p {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    color: var(--color-text-secondary);
    margin: 0 0 4px 0;
}

.confirm-email-resend-p:first-child {
    font-weight: 600;
}

.confirm-email-resend-p:last-child {
    margin-bottom: 0;
}

.confirm-email-link {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.confirm-email-link:hover {
    text-decoration: underline;
}

.confirm-email-card .footer {
    width: 100%;
    margin-top: 0;
    padding: 12px 0 0;
    border-top: 1px solid #E5E7EB;
    background: transparent;
}

.confirm-email-strip {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 15px;
    color: var(--color-text-tertiary);
}

.confirm-email-strip .material-icons {
    font-size: 16px;
    line-height: 16px;
    color: var(--color-text-tertiary);
    margin-right: 4px;
}

.confirm-email-strip-item {
    display: inline-flex;
    align-items: center;
}

/* ========== Correo verificado (verify-email success) - Figma ========== */
.verify-success-page {
    font-family: 'DM Sans', 'Inter', sans-serif;
    background: var(--color-background);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.verify-success-page .container.verify-success-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    gap: 22px;
    max-width: 582px;
    width: 100%;
    background: var(--color-surface);
    border: 1px solid #F3F4F6;
    border-radius: 24px;
    margin: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.verify-success-card .header {
    margin-bottom: 0;
    width: 100%;
}

.verify-success-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 8px;
    width: 100%;
}

.verify-success-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 39px;
    text-align: center;
    color: var(--portal-heading-dark);
    margin: 0;
    width: 100%;
}

.verify-success-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    text-align: center;
    color: var(--color-text-secondary);
    margin: 0;
}

.verify-success-info {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    gap: 16px;
    width: 100%;
    max-width: 526px;
    background: var(--portal-info-bg);
    border: 1px solid var(--portal-info-border);
    border-radius: 16px;
}

.verify-success-info-p {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    color: #374151;
    margin: 0;
    text-align: left;
}

.verify-success-info-small {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    color: #6B7280;
    margin: 0;
}

.verify-success-btn-wrap {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 430px;
}

.verify-success-btn {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 32px;
    gap: 8px;
    min-height: 52px;
    background: var(--color-primary);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 21px;
    text-align: center;
    color: var(--color-text-inverse);
    text-decoration: none;
    transition: background 0.2s;
}

.verify-success-btn:hover {
    background: var(--color-primary-hover);
}

.verify-success-btn .material-icons {
    font-size: 18px;
    line-height: 18px;
}

.verify-success-hr {
    box-sizing: border-box;
    width: 100%;
    max-width: 430px;
    height: 0;
    margin: 0;
    border: none;
    border-top: 1px solid #E5E7EB;
}

.verify-success-register {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    width: 100%;
    max-width: 430px;
}

.verify-success-register-p {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    color: var(--color-text-secondary);
    margin: 0 0 4px 0;
}

.verify-success-register-p:first-child {
    font-weight: 600;
}

.verify-success-register-p:last-child {
    margin-bottom: 0;
}

.verify-success-link {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}

.verify-success-link:hover {
    text-decoration: underline;
}

.verify-success-card .footer {
    width: 100%;
    margin-top: 0;
    padding: 12px 0 0;
    border-top: 1px solid #E5E7EB;
    background: transparent;
}

.verify-success-strip {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 15px;
    color: var(--color-text-tertiary);
}

.verify-success-strip .material-icons {
    font-size: 16px;
    line-height: 16px;
    color: var(--color-text-tertiary);
    margin-right: 4px;
}

.verify-success-strip-item {
    display: inline-flex;
    align-items: center;
}

/* ========== Recuperar contrasena (forgot-password) - Figma ========== */
.forgot-password-page {
    font-family: 'DM Sans', 'Inter', sans-serif;
    background: var(--color-background);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.forgot-password-page .container.forgot-password-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    gap: 22px;
    max-width: 582px;
    width: 100%;
    background: var(--color-surface);
    border: 1px solid #F3F4F6;
    border-radius: 24px;
    margin: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.forgot-password-card .header {
    margin-bottom: 0;
    width: 100%;
}

.forgot-password-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 8px;
    width: 100%;
}

.forgot-password-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 39px;
    text-align: center;
    color: var(--portal-heading-dark);
    margin: 0;
    width: 100%;
}

.forgot-password-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    text-align: center;
    color: var(--color-text-secondary);
    margin: 0;
}

.forgot-password-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: 430px;
}

.forgot-password-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
}

.forgot-password-field label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: var(--color-text-primary);
    margin: 0;
}

.forgot-password-input-with-icon {
    position: relative;
    isolation: isolate;
    width: 100%;
}

.forgot-password-input-with-icon input {
    box-sizing: border-box;
    width: 100%;
    height: 50px;
    padding: 12px 16px 12px 16px;
    padding-right: 44px;
    background: #FBFCFC;
    border: 1px solid var(--color-border-input);
    border-radius: 12px;
    font-family: 'DM Sans', Inter, sans-serif;
    font-size: 16px;
    line-height: 21px;
    color: var(--color-text-primary);
    margin: 0;
}

.forgot-password-input-with-icon input::placeholder {
    color: var(--color-text-tertiary);
}

.forgot-password-input-with-icon input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(25, 118, 210, 0.25);
}

.forgot-password-input-with-icon .forgot-password-input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    line-height: 20px;
    color: var(--color-text-tertiary);
    pointer-events: none;
}

.forgot-password-btn-wrap {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.forgot-password-btn {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 32px;
    gap: 8px;
    min-height: 52px;
    background: var(--color-primary);
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 21px;
    text-align: center;
    color: var(--color-text-inverse);
    cursor: pointer;
    transition: background 0.2s;
}

.forgot-password-btn:hover {
    background: var(--color-primary-hover);
}

.forgot-password-btn .material-icons {
    font-size: 18px;
    line-height: 18px;
}

.forgot-password-hr {
    box-sizing: border-box;
    width: 100%;
    max-width: 430px;
    height: 0;
    margin: 0;
    border: none;
    border-top: 1px solid #E5E7EB;
}

.forgot-password-info {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    gap: 16px;
    width: 100%;
    max-width: 520px;
    background: var(--portal-info-bg);
    border: 1px solid var(--portal-info-border);
    border-radius: 16px;
}

.forgot-password-info-p {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    text-align: center;
    color: #374151;
    margin: 0;
}

.forgot-password-info-small {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    color: #6B7280;
    margin: 0;
}

.forgot-password-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    width: 100%;
    max-width: 430px;
}

.forgot-password-login-p {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    color: var(--color-text-secondary);
    margin: 0 0 4px 0;
}

.forgot-password-login-p:last-child {
    margin-bottom: 0;
}

.forgot-password-link {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.forgot-password-card .footer {
    width: 100%;
    margin-top: 0;
    padding: 12px 0 0;
    border-top: 1px solid #E5E7EB;
    background: transparent;
}

.forgot-password-strip {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 15px;
    color: var(--color-text-tertiary);
}

.forgot-password-strip .material-icons {
    font-size: 16px;
    line-height: 16px;
    color: var(--color-text-tertiary);
    margin-right: 4px;
}

.forgot-password-strip-item {
    display: inline-flex;
    align-items: center;
}

.forgot-password-card .errors {
    width: 100%;
    max-width: 430px;
    margin: 0 auto 8px;
    padding: 12px 16px;
    font-size: 14px;
}
