/* Portal/Support -- estilos propios. Tailwind (CDN) cubre casi todo; aquí solo lo que
   no se puede expresar con utilidades: degradado de cabecera, adornos y animaciones. */

.sp-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4338ca 0%, #7c3aed 55%, #a855f7 100%);
}

/* Círculos difuminados decorativos de la cabecera */
.sp-hero::before,
.sp-hero::after {
    content: "";
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.10);
    filter: blur(2px);
}
.sp-hero::before { width: 18rem; height: 18rem; top: -9rem; right: -6rem; }
.sp-hero::after  { width: 11rem; height: 11rem; bottom: -5rem; left: -3rem; background: rgba(255, 255, 255, 0.07); }

/* Paso actual del estado del ticket: aro que late suavemente */
@keyframes sp-ring {
    0%   { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.45); }
    70%  { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}
.sp-step-current { animation: sp-ring 2s ease-out infinite; }

/* Entrada suave de tarjetas y mensajes */
@keyframes sp-rise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sp-rise { animation: sp-rise .35s ease-out both; }

/* Respeta las zonas seguras de móviles con notch / barra inferior */
.sp-safe-bottom { padding-bottom: max(0.75rem, env(safe-area-inset-bottom)); }

/* Zona de adjuntos mientras se arrastra un archivo encima */
.sp-dropzone-active {
    border-color: #6366f1 !important;
    background-color: #e0e7ff !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    transition: box-shadow .15s ease, background-color .15s ease;
}

/* ---------- Pantallas de acceso (login / activar cuenta) ---------- */

/* Rejilla sutil sobre el degradado, difuminada hacia los bordes */
.sp-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 38px 38px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
}

/* Orbes de luz que flotan lentamente */
@keyframes sp-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(18px, -26px, 0) scale(1.08); }
}
.sp-orb { position: absolute; border-radius: 9999px; filter: blur(40px); pointer-events: none; animation: sp-float 14s ease-in-out infinite; }

/* Cristal esmerilado para las tarjetas sobre el degradado */
.sp-glass { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Aviso de error: pequeña sacudida al aparecer */
@keyframes sp-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.sp-shake { animation: sp-shake .45s ease-in-out; }

/* El hero de las pantallas de acceso ocupa toda la altura en escritorio */
@media (min-width: 1024px) {
    .sp-auth-hero { min-height: 100vh; }
}

@media (prefers-reduced-motion: reduce) {
    .sp-step-current, .sp-rise, .sp-orb, .sp-shake { animation: none; }
}
