/* YoSoy · Pantallas de acceso: ingreso, registro, crear cuenta y restablecer contraseña.
   Colores y componentes: tema.css. El fondo lavanda es el que tenía el login de YoSoy. */

body.acceso {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 40px 16px;
    background:
        radial-gradient(900px 520px at 0% 0%, #ECE4FF 0%, transparent 62%),
        radial-gradient(800px 480px at 100% 100%, #DEE9FF 0%, transparent 58%),
        #F6F3FD;
}
body.acceso--arriba { align-items: flex-start; }

.acceso-tarjeta {
    width: 100%; max-width: 420px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
    box-shadow: 0 18px 48px rgba(74, 58, 158, .12); padding: 32px 32px 28px;
}
.acceso-tarjeta--ancha { max-width: 720px; }

.acceso-marca { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 22px; text-align: center; text-decoration: none; color: var(--text); }
.acceso-marca:hover { text-decoration: none; }
.acceso-marca img { width: 54px; height: 54px; object-fit: contain; margin-bottom: 4px; }
.acceso-marca .ui-marca-nombre { font-size: 24px; }
.acceso-sub { font-size: var(--fs-md); color: var(--text-3); }
.acceso-titulo { margin: 0 0 4px; font-size: var(--fs-xl); font-weight: 600; text-align: center; }
.acceso-bajada { margin: 0 0 18px; text-align: center; font-size: var(--fs-md); color: var(--text-3); }

/* Un botón por rol, en dos columnas: Paciente, Profesional / CRM, Configurador. */
.acceso-roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; width: 100%; margin-bottom: 18px; }
.acceso-roles button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 8px; white-space: nowrap; }
.acceso-roles svg { width: 15px; height: 15px; }

.acceso-form { display: flex; flex-direction: column; gap: 14px; }
.acceso-form .ui-input, .acceso-form .ui-select { height: 38px; font-size: var(--fs-lg); }
.acceso-form .ui-textarea { font-size: var(--fs-lg); }
.campo-clave { position: relative; }
.campo-clave .ui-input { padding-right: 40px; }
.ver-clave {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; display: grid; place-items: center;
    border: none; border-radius: var(--r-md); background: transparent; color: var(--text-4); cursor: pointer;
}
.ver-clave:hover { color: var(--text-2); background: var(--surface-3); }
.ver-clave svg { width: 18px; height: 18px; }

.acceso-pie { margin: 16px 0 0; text-align: center; font-size: var(--fs-md); color: var(--text-3); }
.acceso-pie a { font-weight: 500; }
.acceso-separador { height: 1px; background: var(--border); margin: 20px 0 14px; }
.acceso-links { display: flex; justify-content: center; align-items: center; gap: 4px; flex-wrap: wrap; font-size: var(--fs-md); color: var(--text-4); }
.acceso-links .ui-btn { color: var(--accent-strong); }
.acceso-desplegable { margin-top: 12px; padding: 14px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); }
.acceso-desplegable .ui-input { background: var(--surface); }
.acceso-desplegable-fila { display: flex; gap: 8px; align-items: flex-end; }
.acceso-desplegable-fila .ui-campo { flex: 1; }

/* Formularios largos (registro) */
.acceso-seccion { margin: 8px 0 -2px; font-size: var(--fs-sm); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-strong); }
.acceso-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.acceso-grid .ui-campo--ancho { grid-column: 1 / -1; }
.acceso-acciones { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }

/* Texto legal (acuerdo de registro) */
.acceso-legal {
    max-height: 46vh; overflow-y: auto; padding: 18px 20px; margin-bottom: 18px;
    border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2);
    font-size: var(--fs-lg); line-height: 1.6; color: var(--text-2);
}
.acceso-legal h2 { font-size: var(--fs-lg); margin: 14px 0 6px; color: var(--text); }
.acceso-legal h2:first-child { margin-top: 0; }

/* Confirmación (registro enviado, cuenta creada) */
.acceso-listo { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 8px 0; }
.acceso-listo-icono { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-border); }
.acceso-listo-icono svg { width: 24px; height: 24px; }
.acceso-listo h2 { margin: 6px 0 0; font-size: var(--fs-xl); }
.acceso-listo p { margin: 0; color: var(--text-2); max-width: 460px; }
.acceso-listo .ui-btn { margin-top: 12px; }

@media (max-width: 640px) { .acceso-grid { grid-template-columns: minmax(0, 1fr); } .acceso-tarjeta { padding: 24px 20px; } }

/* Etapa 2: elección de módulo después de ingresar */
.acceso-modulo-titulo { margin: 0 0 12px; font-size: var(--fs-xl); font-weight: 600; color: var(--text); }
