/* ========================================
   E-NOGUEIRA AUTH COUNTDOWN STYLES
   Baseado na landing-countdown adaptado para login
======================================== */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores baseadas na paleta E-Nogueira */
    --solar-primary: #eab308;
    --solar-secondary: #ea580c;
    --electric-primary: #3b82f6;
    --electric-secondary: #2563eb;
    --climate-primary: #06b6d4;
    --climate-secondary: #0891b2;
    --security-primary: #ef4444;
    --security-secondary: #dc2626;
    
    /* Cores gerais */
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f172a;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent: #f59e0b;
    
    /* Efeitos */
    --glow-solar: rgba(234, 179, 8, 0.6);
    --glow-electric: rgba(59, 130, 246, 0.6);
    --glow-climate: rgba(6, 182, 212, 0.6);
    --glow-security: rgba(239, 68, 68, 0.6);
    
    /* Auth específico */
    --auth-glass-bg: rgba(255, 255, 255, 0.95);
    --auth-glass-border: rgba(255, 255, 255, 0.8);
    --auth-input-bg: rgba(255, 255, 255, 0.9);
    --auth-input-border: rgba(0, 0, 0, 0.2);
    --auth-error: #ef4444;
    --auth-success: #10b981;
}

.auth-countdown-body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    margin: 0;
}

/* Canvas de Partículas */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Efeito de Congelamento/Degelo */
.frost-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background: 
        radial-gradient(ellipse at top, transparent 30%, rgba(6, 182, 212, 0.1) 70%),
        radial-gradient(ellipse at bottom, transparent 30%, rgba(6, 182, 212, 0.1) 70%);
    opacity: 0.6;
    transition: opacity 3s ease-in-out;
}

.frost-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px
        );
    animation: frostShimmer 20s linear infinite;
}

@keyframes frostShimmer {
    0% { transform: translateX(0); }
    100% { transform: translateX(100px); }
}

/* Elementos de Tecnologia Flutuantes */
.tech-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.tech-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    overflow: visible;
}

.tech-icon > svg {
    position: relative;
    z-index: 999 !important;
}

.tech-icon svg {
    width: 30px;
    height: 30px;
    fill: white !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
    z-index: 999 !important;
    position: relative;
}

/* Orbe Elétrica - Movimento diagonal superior esquerda */
.electric-icon {
    top: 12%;
    left: 8%;
    background: radial-gradient(circle, var(--electric-primary), var(--electric-secondary));
    color: var(--electric-primary);
    animation: floatElectric 12s ease-in-out infinite;
    animation-delay: 0s;
}

.electric-icon svg {
    fill: #ffffff !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9)) !important;
    z-index: 999 !important;
    position: relative !important;
}

/* Orbe Climatização - Movimento superior direita com deriva */
.climate-icon {
    top: 18%;
    right: 12%;
    background: radial-gradient(circle, var(--climate-primary), var(--climate-secondary));
    color: var(--climate-primary);
    animation: floatClimate 15s ease-in-out infinite;
    animation-delay: -3s; /* Começar 3s adiantado */
}

.climate-icon svg {
    fill: #ffffff !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9)) !important;
    z-index: 999 !important;
    position: relative !important;
}

/* Orbe Segurança - Movimento inferior esquerda orgânico */
.security-icon {
    bottom: 22%;
    left: 15%;
    background: radial-gradient(circle, var(--security-primary), var(--security-secondary));
    color: var(--security-primary);
    animation: floatSecurity 11s ease-in-out infinite;
    animation-delay: -6s; /* Começar 6s adiantado */
}

.security-icon svg {
    fill: #ffffff !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9)) !important;
    z-index: 999 !important;
    position: relative !important;
}

/* Orbe Solar - Movimento inferior direita com órbita */
.solar-icon {
    bottom: 15%;
    right: 18%;
    background: radial-gradient(circle, var(--solar-primary), var(--solar-secondary));
    color: var(--solar-primary);
    animation: floatSolar 13s ease-in-out infinite;
    animation-delay: -9s; /* Começar 9s adiantado */
}

.solar-icon svg {
    fill: #ffffff !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9)) !important;
    z-index: 999 !important;
    position: relative !important;
}

/* Animações de flutuação específicas - Mais orgânicas e fluidas */

/* Elétrica - Movimento em zigue-zague com rotação suave */
@keyframes floatElectric {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1); 
    }
    20% { 
        transform: translate(45px, -25px) rotate(72deg) scale(1.05); 
    }
    40% { 
        transform: translate(-15px, -50px) rotate(144deg) scale(0.95); 
    }
    60% { 
        transform: translate(-40px, -10px) rotate(216deg) scale(1.1); 
    }
    80% { 
        transform: translate(25px, 20px) rotate(288deg) scale(0.9); 
    }
}

/* Climatização - Movimento em "8" com deriva lateral */
@keyframes floatClimate {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1); 
    }
    16% { 
        transform: translate(-35px, 15px) rotate(45deg) scale(1.08); 
    }
    33% { 
        transform: translate(-20px, 40px) rotate(90deg) scale(0.92); 
    }
    50% { 
        transform: translate(30px, 25px) rotate(180deg) scale(1.12); 
    }
    66% { 
        transform: translate(45px, -15px) rotate(270deg) scale(0.88); 
    }
    83% { 
        transform: translate(10px, -45px) rotate(315deg) scale(1.05); 
    }
}

/* Segurança - Movimento orbital com pulsos */
@keyframes floatSecurity {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1); 
    }
    25% { 
        transform: translate(50px, -35px) rotate(90deg) scale(1.15); 
    }
    50% { 
        transform: translate(20px, -60px) rotate(180deg) scale(0.85); 
    }
    75% { 
        transform: translate(-30px, -25px) rotate(270deg) scale(1.1); 
    }
}

/* Solar - Movimento planetário com rotação contínua */
@keyframes floatSolar {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1); 
    }
    12.5% { 
        transform: translate(-25px, -30px) rotate(45deg) scale(1.06); 
    }
    25% { 
        transform: translate(-50px, -15px) rotate(90deg) scale(0.94); 
    }
    37.5% { 
        transform: translate(-40px, 25px) rotate(135deg) scale(1.08); 
    }
    50% { 
        transform: translate(-10px, 45px) rotate(180deg) scale(0.92); 
    }
    62.5% { 
        transform: translate(30px, 35px) rotate(225deg) scale(1.04); 
    }
    75% { 
        transform: translate(55px, 10px) rotate(270deg) scale(0.96); 
    }
    87.5% { 
        transform: translate(40px, -25px) rotate(315deg) scale(1.02); 
    }
}

/* Conteúdo Principal */
.auth-main-content {
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Container do Formulário */
.auth-form-container {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 36px;
    max-width: 380px;
    width: 100%;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(59, 130, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Logo */
.auth-logo-container {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    height: 64px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Título e Subtítulo */
.auth-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #1e3a5f, var(--electric-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 32px;
    font-weight: 500;
}

/* Formulário */
.auth-form {
    width: 100%;
}

.auth-input-group {
    margin-bottom: 24px;
    position: relative;
}

.auth-field-label {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.auth-field-input {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 14px 16px;
    color: #1e293b;
    font-size: 1rem;
    width: 100%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.auth-field-input:focus {
    border-color: var(--electric-primary);
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.1),
        inset 0 1px 2px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.35);
}

.auth-field-input::placeholder {
    color: #94a3b8;
    opacity: 0.8;
}

.auth-field-input.auth-input-error {
    border-color: var(--auth-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Container de Senha com Toggle */
.auth-password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #1e293b;
}

/* Checkbox */
.auth-checkbox-group {
    margin-bottom: 24px;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #64748b;
}

.auth-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: var(--electric-primary);
}

/* Botão de Submit */
.auth-submit-button {
    background: linear-gradient(135deg, var(--electric-primary), var(--electric-secondary));
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.auth-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.auth-submit-button:active {
    transform: translateY(0);
}

.auth-button-icon {
    transition: transform 0.3s ease;
}

.auth-submit-button:hover .auth-button-icon {
    transform: translateX(4px);
}

/* Links */
.auth-links {
    margin-top: 24px;
    text-align: center;
}

.auth-link {
    color: var(--electric-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--electric-secondary);
    text-decoration: underline;
}

.auth-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 16px 0;
}

.auth-link-register {
    font-weight: 500;
}

/* Mensagens de Erro */
.auth-error-text {
    color: var(--auth-error);
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

.auth-error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px;
    color: var(--auth-error);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* ========================================
   RESPONSIVIDADE
======================================== */

@media (max-width: 768px) {
    .auth-form-container {
        background: rgba(255, 255, 255, 0.06);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        padding: 28px 20px;
        margin: 16px;
        border-radius: 20px;
        max-width: 100%;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .tech-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        animation-duration: 10s; /* Mais lento em mobile */
    }
    
    /* Reduzir efeitos em mobile */
    .frost-overlay {
        opacity: 0.3;
    }
    
    #particlesCanvas {
        opacity: 0.7;
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    .auth-main-content {
        padding: 15px 10px;
    }
    
    .auth-form-container {
        background: rgba(255, 255, 255, 0.05) !important;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        padding: 24px 18px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.15),
            0 0 30px rgba(59, 130, 246, 0.05);
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-subtitle {
        font-size: 0.9rem;
    }
    
    .tech-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    /* Reposicionar orbes para telas pequenas com mais espaçamento */
    .electric-icon {
        top: 8%;
        left: 3%;
        animation-duration: 15s; /* Mais lento em mobile */
    }
    
    .climate-icon {
        top: 12%;
        right: 5%;
        animation-duration: 18s;
    }
    
    .security-icon {
        bottom: 18%;
        left: 8%;
        animation-duration: 14s;
    }
    
    .solar-icon {
        bottom: 12%;
        right: 10%;
        animation-duration: 16s;
    }
}

@media (max-width: 360px) {
    .auth-form-container {
        padding: 20px 16px;
    }
    
    .auth-title {
        font-size: 1.3rem;
    }
    
    .tech-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* ========================================
   DARK MODE SUPPORT
======================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --auth-glass-bg: rgba(255, 255, 255, 0.08);
        --auth-glass-border: rgba(255, 255, 255, 0.2);
        --auth-input-bg: rgba(255, 255, 255, 0.85);
        --auth-input-border: rgba(255, 255, 255, 0.3);
    }
    
    /* Manter transparência também em dark mode */
    .auth-form-container {
        /* Mantém a transparência do design */
    }
    
    .auth-field-label {
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    }
    
    .auth-field-input {
        color: #1e293b !important;
        background: rgba(255, 255, 255, 0.85);
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
    }
    
    .auth-field-input:focus {
        background: rgba(255, 255, 255, 0.9);
    }
    
    .auth-checkbox-label {
        color: #64748b !important;
    }
    
    .password-toggle {
        color: #64748b !important;
    }
    
    .password-toggle:hover {
        color: #1e293b !important;
    }
}

/* ========================================
   EFEITOS AVANÇADOS DOS ORBES
======================================== */

/* Efeitos Elétricos */
.electric-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    pointer-events: none;
    z-index: 8; /* Logo atrás do orbe (orbe = 10) */
}

.electric-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--electric-primary), transparent);
    transform-origin: bottom center;
    animation: electricPulse 2s ease-in-out infinite;
}

@keyframes electricPulse {
    0%, 100% { opacity: 0; transform: translate(-50%, -100%) scaleY(0.5); }
    50% { opacity: 1; transform: translate(-50%, -100%) scaleY(1.2); }
}

/* Efeitos de Climatização */
.snowflake-star {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    pointer-events: none;
    z-index: 8; /* Logo atrás do orbe (orbe = 10) */
}

.star-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, var(--climate-primary), transparent);
    transform-origin: bottom center;
    animation: starRotate 8s linear infinite;
}

@keyframes starRotate {
    0% { transform: translate(-50%, -100%) scaleY(0.8); }
    50% { transform: translate(-50%, -100%) scaleY(1.2); }
    100% { transform: translate(-50%, -100%) scaleY(0.8); }
}

.ice-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    pointer-events: none;
    z-index: 8; /* Logo atrás do orbe (orbe = 10) */
}

.ice-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--climate-primary);
    border-radius: 50%;
    animation: iceFloat 4s ease-in-out infinite;
}

.ice-particle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.ice-particle:nth-child(2) { top: 30%; left: 80%; animation-delay: 0.2s; }
.ice-particle:nth-child(3) { top: 60%; left: 15%; animation-delay: 0.4s; }
.ice-particle:nth-child(4) { top: 80%; left: 70%; animation-delay: 0.6s; }
.ice-particle:nth-child(5) { top: 25%; left: 45%; animation-delay: 0.8s; }
.ice-particle:nth-child(6) { top: 75%; left: 25%; animation-delay: 1.0s; }
.ice-particle:nth-child(7) { top: 45%; left: 85%; animation-delay: 1.2s; }
.ice-particle:nth-child(8) { top: 90%; left: 50%; animation-delay: 1.4s; }

@keyframes iceFloat {
    0%, 100% { transform: translate(0, 0) scale(0.8); opacity: 0.4; }
    50% { transform: translate(20px, -20px) scale(1.2); opacity: 1; }
}

/* Efeitos de Segurança - PULSOS DINÂMICOS */
.security-pulses {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    pointer-events: none;
    z-index: 8; /* Logo atrás do orbe (orbe = 10) */
}

.security-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--security-primary);
    border-radius: 50%;
    animation: securityPulse 2.4s ease-out infinite;
}

.security-pulse:nth-child(1) { animation-delay: 0s; }
.security-pulse:nth-child(2) { animation-delay: 0.8s; }
.security-pulse:nth-child(3) { animation-delay: 1.6s; }

@keyframes securityPulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* Efeitos Solares - ROTAÇÃO E PARTÍCULAS */
.solar-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    pointer-events: none;
    animation: solarRotation 20s linear infinite;
    z-index: 8; /* Logo atrás do orbe (orbe = 10) */
}

.solar-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 35px;
    background: linear-gradient(to bottom, var(--solar-primary), transparent);
    transform-origin: bottom center;
    z-index: 8; /* Logo atrás do orbe (orbe = 10) */
}

.solar-ray:nth-child(1) { transform: translate(-50%, -100%) rotate(0deg); }
.solar-ray:nth-child(2) { transform: translate(-50%, -100%) rotate(45deg); }
.solar-ray:nth-child(3) { transform: translate(-50%, -100%) rotate(90deg); }
.solar-ray:nth-child(4) { transform: translate(-50%, -100%) rotate(135deg); }
.solar-ray:nth-child(5) { transform: translate(-50%, -100%) rotate(180deg); }
.solar-ray:nth-child(6) { transform: translate(-50%, -100%) rotate(225deg); }
.solar-ray:nth-child(7) { transform: translate(-50%, -100%) rotate(270deg); }
.solar-ray:nth-child(8) { transform: translate(-50%, -100%) rotate(315deg); }

@keyframes solarRotation {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.energy-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    pointer-events: none;
    z-index: 8; /* Logo atrás do orbe (orbe = 10) */
}

.energy-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--solar-primary);
    border-radius: 50%;
    transform-origin: 0 70px;
    animation: energyOrbit 6s linear infinite;
}

.energy-particle:nth-child(1) { animation-delay: 0s; transform: rotate(0deg); }
.energy-particle:nth-child(2) { animation-delay: 0.3s; transform: rotate(30deg); }
.energy-particle:nth-child(3) { animation-delay: 0.6s; transform: rotate(60deg); }
.energy-particle:nth-child(4) { animation-delay: 0.9s; transform: rotate(90deg); }
.energy-particle:nth-child(5) { animation-delay: 1.2s; transform: rotate(120deg); }
.energy-particle:nth-child(6) { animation-delay: 1.5s; transform: rotate(150deg); }
.energy-particle:nth-child(7) { animation-delay: 1.8s; transform: rotate(180deg); }
.energy-particle:nth-child(8) { animation-delay: 2.1s; transform: rotate(210deg); }
.energy-particle:nth-child(9) { animation-delay: 2.4s; transform: rotate(240deg); }
.energy-particle:nth-child(10) { animation-delay: 2.7s; transform: rotate(270deg); }
.energy-particle:nth-child(11) { animation-delay: 3.0s; transform: rotate(300deg); }
.energy-particle:nth-child(12) { animation-delay: 3.3s; transform: rotate(330deg); }

@keyframes energyOrbit {
    0% { transform: rotate(0deg) translateX(70px) scale(0.8); opacity: 0.6; }
    50% { transform: rotate(180deg) translateX(70px) scale(1.2); opacity: 1; }
    100% { transform: rotate(360deg) translateX(70px) scale(0.8); opacity: 0.6; }
}

/* Elementos de Fundo Adicionais */
.shimmer-effect {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent);
    animation: backgroundShimmer 15s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes backgroundShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.frost-crystals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.frost-crystal {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(6, 182, 212, 0.3);
    border-radius: 50%;
    animation: crystalFloat linear infinite;
}

@keyframes crystalFloat {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.energy-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.energy-line {
    position: absolute;
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--electric-primary), transparent);
    animation: energyPulse 3s ease-in-out infinite;
}

@keyframes energyPulse {
    0%, 100% { opacity: 0; transform: scaleY(0.5); }
    50% { opacity: 0.6; transform: scaleY(1.5); }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
======================================== */

.tech-icon {
    will-change: transform;
    transform: translateZ(0);
}

.auth-form-container {
    will-change: transform;
    transform: translateZ(0);
}

#particlesCanvas {
    will-change: transform;
    transform: translateZ(0);
}

/* Otimizações para mobile */
@media (max-width: 768px) {
    .electric-rays, .snowflake-star, .security-pulses, .solar-rays, .energy-particles {
        width: 60px;
        height: 60px;
    }
    
    .electric-ray, .solar-ray {
        height: 25px;
    }
    
    .star-ray {
        height: 20px;
    }
    
    .frost-crystals, .energy-lines {
        opacity: 0.5;
    }
}

/* Reduzir animações se preferências de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    .tech-icon {
        animation: none;
    }
    
    .frost-overlay::before {
        animation: none;
    }
    
    .auth-form-container::before {
        animation: none;
    }
    
    .electric-ray, .star-ray, .security-pulse, .solar-rays, .energy-particle {
        animation: none;
    }
}