/* Entrada única de CREW (/entrar.php, etapa 5). Estructura del diseño "Login" con el estilo de la app.
   Todo con prefijo cu-: este archivo entra en todas las páginas del panel (glob de _comun.php). */

.cu { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--bg); }

/* ─── Mitad de la marca ─── */
.cu-marca { display: flex; flex-direction: column; gap: 40px; padding: 48px 56px; background: radial-gradient(ellipse at 0% 0%, rgba(29,182,217,0.13), transparent 60%), linear-gradient(180deg, #07181c 0%, #0a0a0a 100%); border-right: 1px solid var(--border); }
.cu-sitio { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 600; font-size: 16px; }
.cu-sitio:hover { text-decoration: none; }
.cu-sitio img { width: 36px; height: 36px; border-radius: var(--r-medio); }
.cu-promesa { margin: auto 0; max-width: 460px; }
.cu-promesa h1 { margin: 0; font-size: 44px; line-height: 48px; letter-spacing: -1px; font-weight: 700; }
.cu-promesa > p { margin: 18px 0 0; color: var(--text-dim); font-size: 16px; line-height: 25px; }
.cu-lugares { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.cu-lugares li { display: flex; align-items: center; gap: 14px; }
.cu-lugares strong { display: block; font-weight: 600; }
.cu-lugares small { display: block; color: var(--text-muted); font-size: 13px; line-height: 18px; }
.cu-icono { width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--r-medio); display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--border-hi); color: var(--cyan); }
.cu-icono svg { width: 18px; height: 18px; }
.cu-pie { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 19px; }
.cu-pie strong { color: var(--text-dim); font-weight: 600; }

/* ─── Mitad del formulario ─── */
.cu-lado { display: grid; place-items: center; padding: 48px 24px; }
.cu-caja { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.cu-caja h2 { margin: 0; }
.cu-caja .bajada { margin: 4px 0 0; color: var(--text-dim); }
.cu-form { display: flex; flex-direction: column; gap: 16px; }
.cu-form .boton.relleno { width: 100%; }
.cu-clave { position: relative; }
.cu-clave .input { width: 100%; padding-right: 48px; }
.cu-ojo { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--text-muted); cursor: pointer; border-radius: var(--r-medio); display: grid; place-items: center; }
.cu-ojo:hover { color: var(--text); }
.cu-ojo svg { width: 18px; height: 18px; }
.cu-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.cu-links .dim { color: var(--text-muted); }
.cu-link { background: none; border: 0; padding: 0; color: var(--cyan); cursor: pointer; font-weight: 500; }
.cu-link:hover { text-decoration: underline; }
.cu-volver { align-self: flex-start; }
.cu-nota { display: flex; gap: 10px; align-items: flex-start; color: var(--text-muted); font-size: 13px; line-height: 19px; }
.cu-nota svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.cu-aviso { background: var(--accent-soft); border: 1px solid var(--border-hi); border-radius: var(--r-grande); padding: 12px 14px; color: var(--text-dim); font-size: 14px; }
.cu-aviso.ok { background: var(--ok-bg); border-color: var(--ok-border); color: var(--text); }

/* ─── ¿A dónde vas? ─── */
.cu-destinos { display: flex; flex-direction: column; gap: 10px; }
.cu-destino { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border-radius: var(--r-grande); border: 1px solid var(--border-fuerte); background: var(--bg-card); color: var(--text); cursor: pointer; transition: background .12s, border-color .12s; }
.cu-destino:hover, .cu-destino:focus-visible { border-color: var(--cyan); background: var(--accent-soft); outline: none; }
.cu-destino .cu-textos { flex: 1; min-width: 0; }
.cu-destino strong { display: block; font-weight: 600; }
.cu-destino small { display: block; color: var(--text-muted); font-size: 13px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cu-destino .cu-flecha { color: var(--text-muted); display: grid; }
.cu-destino .cu-flecha svg { width: 18px; height: 18px; }
.cu-destino:hover .cu-flecha { color: var(--cyan); }

/* ─── Unir cuentas ─── */
.cu-opciones { display: flex; flex-direction: column; gap: 10px; }
.cu-opcion { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-grande); border: 1px solid var(--border-fuerte); background: var(--bg-card); cursor: pointer; }
.cu-opcion:has(input:checked) { border-color: var(--cyan); background: var(--accent-soft); }
.cu-opcion input { margin: 3px 0 0; accent-color: var(--cyan); width: 18px; height: 18px; flex-shrink: 0; }
.cu-opcion strong { display: block; font-weight: 600; }
.cu-opcion small { display: block; color: var(--text-muted); font-size: 13px; line-height: 18px; }
.cu-codigo { font-size: 26px; letter-spacing: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.cu-reglas { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-muted); }
.cu-reglas li.ok { color: var(--ok); }
.cu-reglas li::before { content: '○ '; }
.cu-reglas li.ok::before { content: '✓ '; }

@media (max-width: 900px) {
  .cu { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .cu-marca { padding: 20px 16px; gap: 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .cu-promesa, .cu-pie { display: none; }
  .cu-lado { place-items: start center; padding: 28px 16px 48px; }
}
