/* =====================================================================
   Registro (Views/Account/Register.cshtml) · body.page-register
   Computadora animada que saluda (SVG) + burbujas que suben por el fondo.
   Los mensajes del globo los rota Scripts/app/registro.js.
   ===================================================================== */
.bienvenida {
    position: relative;
    width: 320px;
    flex: none;
    text-align: center;
}

.bienvenida svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Globo de diálogo */
.globo {
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
    padding: 12px 20px;
    border-radius: 18px;
    background: #fff;
    color: #0d47a1;
    font-size: var(--text-lg);
    font-weight: 800;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
    animation: registro-aparecer 0.6s ease-out both;
}

.globo::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    margin-left: -10px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #fff transparent transparent;
}

.globo span {
    display: inline-block;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.globo span.cambiando {
    opacity: 0;
    transform: translateY(6px);
}

/* Flotado suave de la computadora y su sombra */
.flotar {
    animation: registro-flotar 4s ease-in-out infinite;
}

.sombra {
    transform-box: fill-box;
    transform-origin: center;
    animation: registro-sombra 4s ease-in-out infinite;
}

@keyframes registro-flotar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes registro-sombra {
    0%, 100% { transform: scaleX(1); opacity: 0.35; }
    50% { transform: scaleX(0.85); opacity: 0.2; }
}

@keyframes registro-aparecer {
    from { opacity: 0; transform: scale(0.8) translateY(10px); }
    to { opacity: 1; transform: none; }
}

/* Burbujas de colores que suben por el fondo */
.burbujas {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.burbuja {
    position: absolute;
    bottom: -120px;
    border-radius: 50%;
    animation: registro-subir linear infinite;
}

.burbuja:nth-child(1) { left: 5%;  width: 60px; height: 60px; background: rgba(79, 141, 255, 0.22);  animation-duration: 22s; animation-delay: 0s; }
.burbuja:nth-child(2) { left: 18%; width: 28px; height: 28px; background: rgba(255, 210, 87, 0.3);  animation-duration: 17s; animation-delay: 4s; }
.burbuja:nth-child(3) { left: 32%; width: 90px; height: 90px; background: rgba(244, 143, 177, 0.18); animation-duration: 28s; animation-delay: 2s; }
.burbuja:nth-child(4) { left: 50%; width: 40px; height: 40px; background: rgba(69, 211, 227, 0.2);  animation-duration: 20s; animation-delay: 9s; }
.burbuja:nth-child(5) { left: 64%; width: 70px; height: 70px; background: rgba(255, 210, 87, 0.2);  animation-duration: 25s; animation-delay: 6s; }
.burbuja:nth-child(6) { left: 78%; width: 34px; height: 34px; background: rgba(244, 143, 177, 0.25); animation-duration: 18s; animation-delay: 1s; }
.burbuja:nth-child(7) { left: 90%; width: 55px; height: 55px; background: rgba(79, 141, 255, 0.24);  animation-duration: 24s; animation-delay: 12s; }

@keyframes registro-subir {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translateY(-55vh) translateX(25px); }
    90% { opacity: 1; }
    100% { transform: translateY(-115vh) translateX(-10px); opacity: 0; }
}

@media (max-width: 900px) {
    .page-register .auth__wrap {
        flex-direction: column;
        gap: 0;
    }

    .bienvenida {
        width: 200px;
    }

    .globo {
        padding: 8px 14px;
        font-size: var(--text-md);
    }
}

@media (prefers-reduced-motion: reduce) {
    .flotar,
    .sombra,
    .globo {
        animation: none !important;
    }

    .burbuja {
        display: none;
    }
}
