/* =========================================================================
 * Effects - Glow, partículas, reflexos, ambient lighting
 * ========================================================================= */

/* Glow neon ambiente atrás do robô */
#loginRobotMount::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 30%;
    width: 280px;
    height: 280px;
    transform: translate(-50%, -30%);
    background: radial-gradient(circle,
        rgba(127, 238, 255, 0.32) 0%,
        rgba(51, 221, 255, 0.18) 35%,
        rgba(20, 60, 120, 0)      72%);
    filter: blur(20px);
    z-index: -1;
    pointer-events: none;
    animation: lr-pulse 4s ease-in-out infinite;
}

@keyframes lr-pulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -30%) scale(1);    }
    50%      { opacity: 1.0; transform: translate(-50%, -30%) scale(1.06); }
}

/* Drop shadow premium no robô */
#loginRobotMount svg {
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45))
            drop-shadow(0 0 12px rgba(127, 238, 255, 0.18));
}

/* Reflexo no topo do card */
.modal-pop.login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg,
        rgba(127, 238, 255, 0.06) 0%,
        rgba(127, 238, 255, 0)    100%);
    pointer-events: none;
    border-radius: 20px 20px 0 0;
}

/* Linha de luz neon no topo do card (como se o robô iluminasse) */
.modal-pop.login::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(127, 238, 255, 0.6) 50%,
        transparent 100%);
    filter: blur(1px);
    pointer-events: none;
}

/* Partículas flutuantes (CSS puro) */
.lr-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    border-radius: 20px;
}

.lr-particles span {
    position: absolute;
    bottom: -10px;
    width: 4px;
    height: 4px;
    background: rgba(127, 238, 255, 0.55);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(127, 238, 255, 0.7);
    animation: lr-rise linear infinite;
}

.lr-particles span:nth-child(1)  { left:  8%; animation-duration: 9s;  animation-delay: 0s;   width: 3px; height: 3px; }
.lr-particles span:nth-child(2)  { left: 18%; animation-duration: 11s; animation-delay: 1.5s; }
.lr-particles span:nth-child(3)  { left: 28%; animation-duration: 8s;  animation-delay: 3s;   width: 2px; height: 2px; }
.lr-particles span:nth-child(4)  { left: 38%; animation-duration: 12s; animation-delay: 0.8s; }
.lr-particles span:nth-child(5)  { left: 48%; animation-duration: 10s; animation-delay: 2.2s; width: 5px; height: 5px; }
.lr-particles span:nth-child(6)  { left: 58%; animation-duration: 9s;  animation-delay: 4s; }
.lr-particles span:nth-child(7)  { left: 68%; animation-duration: 11s; animation-delay: 1s;   width: 3px; height: 3px; }
.lr-particles span:nth-child(8)  { left: 78%; animation-duration: 13s; animation-delay: 2.8s; }
.lr-particles span:nth-child(9)  { left: 88%; animation-duration: 8s;  animation-delay: 3.5s; width: 2px; height: 2px; }
.lr-particles span:nth-child(10) { left: 95%; animation-duration: 10s; animation-delay: 0.3s; }

@keyframes lr-rise {
    0%   { transform: translateY(0)     scale(0.6); opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateY(-440px) scale(1.1); opacity: 0; }
}

/* Hover do card potencializa o glow */
.modal-pop.login:hover #loginRobotMount::before {
    opacity: 1;
    filter: blur(24px);
}

/* Foco no campo senha intensifica o glow do robô */
.pwd-input-wrapper:focus-within ~ #loginRobotMount::before,
body.lr-pwd-focus #loginRobotMount::before {
    background: radial-gradient(circle,
        rgba(127, 238, 255, 0.45) 0%,
        rgba(51, 221, 255, 0.22) 40%,
        rgba(20, 60, 120, 0)      72%);
}

/* Remove animações pesadas se reduced motion */
@media (prefers-reduced-motion: reduce) {
    #loginRobotMount::before,
    .lr-particles span,
    .modal-pop.login::after {
        animation: none !important;
    }
}
