/* Tema Natalino - CryptonAuth */

/* Cores de Natal */
:root {
    --christmas-red: #dc2626;
    --christmas-green: #16a34a;
    --christmas-gold: #fbbf24;
    --christmas-snow: #ffffff;
    --christmas-dark-green: #15803d;
    --christmas-dark-red: #b91c1c;
}

/* Flocos de neve animados */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: var(--christmas-snow);
    font-size: 0.6em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.6);
    animation: snowfall ease-in-out infinite;
    opacity: 0.7;
}

@keyframes snowfall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Estrelas cintilantes */
.christmas-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.christmas-star {
    position: absolute;
    color: inherit;
    font-size: 1.5em;
    animation: twinkle 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    filter: none;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Decorações de Natal no fundo */
.christmas-decoration {
    position: fixed;
    pointer-events: none;
    z-index: 2;
}

.christmas-tree {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 3em;
    opacity: 0.8;
    animation: sway 3s ease-in-out infinite;
    z-index: 9999;
    pointer-events: auto;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.5));
}

.christmas-tree:hover {
    opacity: 1;
    transform: scale(1.2) translateZ(0);
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.8));
}

.christmas-tree:hover + .christmas-tree-tooltip,
.christmas-tree:hover ~ .christmas-tree-tooltip {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

.christmas-tree-tooltip {
    position: fixed !important;
    bottom: 100px !important;
    right: 20px !important;
    background: linear-gradient(135deg, #7c3aed, #a78bfa) !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    border-radius: 20px !important;
    font-size: 1em !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.6) !important;
    opacity: 0 !important;
    transform: translateY(10px) !important;
    transition: all 0.3s ease !important;
    pointer-events: none !important;
    z-index: 10001 !important;
    white-space: nowrap !important;
    animation: pulse-glow 2s ease-in-out infinite !important;
    display: block !important;
    visibility: hidden !important;
}

.christmas-tree:hover ~ .christmas-tree-tooltip,
.christmas-tree-tooltip.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

@keyframes sway {
    0%, 100% {
        transform: rotate(-2deg) translateZ(0);
    }
    50% {
        transform: rotate(2deg) translateZ(0);
    }
}

/* Efeitos de brilho natalino */
.christmas-glow {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.5),
                0 0 40px rgba(22, 163, 74, 0.3),
                0 0 60px rgba(251, 191, 36, 0.2) !important;
}

/* Gradientes natalinos */
.christmas-gradient-red {
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-dark-red)) !important;
}

.christmas-gradient-green {
    background: linear-gradient(135deg, var(--christmas-green), var(--christmas-dark-green)) !important;
}

.christmas-gradient-gold {
    background: linear-gradient(135deg, var(--christmas-gold), #f59e0b) !important;
}

/* Bordas natalinas */
.christmas-border {
    border: 2px solid var(--christmas-red) !important;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.4) !important;
}

/* Texto com efeito natalino - mantém cores originais */
.christmas-text {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Garantir que emojis mantenham suas cores originais mesmo dentro de christmas-text */
.christmas-text {
    position: relative;
}

/* Forçar emojis a manterem cores originais usando unicode-range */
.christmas-text {
    -webkit-text-fill-color: transparent;
}

/* Sobrescrever para emojis e caracteres especiais */
.christmas-text::selection,
.christmas-text *::selection {
    -webkit-text-fill-color: initial !important;
    background: rgba(124, 58, 237, 0.3) !important;
}

/* Regra específica para preservar cores de emojis - usando uma abordagem diferente */
.christmas-text {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Adicionar regra para elementos que não devem ter o gradiente */
.christmas-text > *:not(.gradient-text):not(.christmas-badge) {
    -webkit-text-fill-color: initial !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
}

/* Garantir que o badge dentro do texto natalino tenha cor branca */
.christmas-text .christmas-badge {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-fill-color: #ffffff !important;
    background: linear-gradient(135deg, #7c3aed, #a78bfa) !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    margin-left: 0 !important;
    margin-top: 12px !important;
    display: block !important;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Botões com tema natalino - mantém cores originais */
.christmas-button {
    background: linear-gradient(135deg, #5865F2, #4752C4) !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4),
                0 0 0 1px rgba(88, 101, 242, 0.2) !important;
    position: relative;
    overflow: hidden;
}

.christmas-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s infinite;
}

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

.christmas-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 30px rgba(88, 101, 242, 0.6),
                0 0 0 1px rgba(88, 101, 242, 0.3) !important;
}

/* Cards com tema natalino */
.christmas-card {
    border: 2px solid var(--christmas-green) !important;
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.3),
                0 0 30px rgba(251, 191, 36, 0.2) !important;
    position: relative;
}

.christmas-card::after {
    content: '🎄';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    opacity: 0.3;
    animation: twinkle 2s ease-in-out infinite;
}

/* Overlay de Natal no background - removido para manter cores originais */
.christmas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 0;
}

/* Animação de pisca-pisca */
.christmas-blink {
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Badge de Natal */
.christmas-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #ffffff !important;
    border-radius: 20px;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
    animation: pulse-glow 3s ease-in-out infinite;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
    }
    50% {
        box-shadow: 0 2px 15px rgba(124, 58, 237, 0.5),
                    0 0 20px rgba(167, 139, 250, 0.25);
    }
}

/* Efeitos de luzes de Natal piscando */
.christmas-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.christmas-light {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: blink-light 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px currentColor;
}

@keyframes blink-light {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Efeito de confete */
.christmas-confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #7c3aed;
    animation: confetti-fall linear infinite;
    border-radius: 2px;
}

.confetti-piece:nth-child(2n) {
    background: #a78bfa;
}

.confetti-piece:nth-child(3n) {
    background: #8b5cf6;
}

.confetti-piece:nth-child(4n) {
    background: #ffffff;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Efeito de brilho pulsante no fundo */
.christmas-glow-effect {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, 
        rgba(124, 58, 237, 0.2) 0%,
        rgba(167, 139, 250, 0.15) 30%,
        rgba(139, 92, 246, 0.1) 60%,
        transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: pulse-glow-effect 4s ease-in-out infinite;
    filter: blur(60px);
}

@keyframes pulse-glow-effect {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

/* Efeito de partículas flutuantes */
.christmas-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.christmas-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #a78bfa;
    border-radius: 50%;
    animation: float-particle 8s ease-in-out infinite;
    box-shadow: 0 0 6px #a78bfa;
}

.christmas-particle:nth-child(2n) {
    background: #7c3aed;
    box-shadow: 0 0 6px #7c3aed;
    animation-duration: 10s;
}

.christmas-particle:nth-child(3n) {
    background: #8b5cf6;
    box-shadow: 0 0 6px #8b5cf6;
    animation-duration: 12s;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(30px, -50px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, -100px) scale(0.8);
        opacity: 0.6;
    }
    75% {
        transform: translate(50px, -150px) scale(1.1);
        opacity: 0.7;
    }
}

/* Efeito de brilho nos elementos interativos */
.christmas-shine {
    position: relative;
    overflow: hidden;
}

.christmas-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shine-sweep 3s infinite;
    pointer-events: none;
}

@keyframes shine-sweep {
    0% {
        transform: translate(-100%, -100%) rotate(45deg);
    }
    100% {
        transform: translate(100%, 100%) rotate(45deg);
    }
}

/* Efeito de neve mais elaborado */
.snowflake-enhanced {
    position: absolute;
    color: var(--christmas-snow);
    font-size: 1.2em;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.8),
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 15px rgba(255, 255, 255, 0.3);
    animation: snowfall-enhanced linear infinite;
    opacity: 0.9;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
}

@keyframes snowfall-enhanced {
    0% {
        transform: translateY(-10px) translateX(0) rotate(0deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(50vh) translateX(20px) rotate(180deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) translateX(-20px) rotate(360deg);
        opacity: 0;
    }
}

/* Efeito de borda brilhante */
.christmas-border-glow {
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.christmas-border-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        var(--christmas-red),
        var(--christmas-gold),
        var(--christmas-green),
        var(--christmas-red)
    );
    border-radius: inherit;
    z-index: -1;
    animation: border-rotate 3s linear infinite;
    opacity: 0.6;
}

@keyframes border-rotate {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* Efeito de texto brilhante */
.christmas-text-glow {
    text-shadow: 
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 30px currentColor,
        0 0 40px currentColor;
    animation: text-glow-pulse 2s ease-in-out infinite;
}

@keyframes text-glow-pulse {
    0%, 100% {
        text-shadow: 
            0 0 10px currentColor,
            0 0 20px currentColor,
            0 0 30px currentColor;
    }
    50% {
        text-shadow: 
            0 0 20px currentColor,
            0 0 40px currentColor,
            0 0 60px currentColor,
            0 0 80px currentColor;
    }
}

/* Efeito de ondas de luz */
.christmas-waves {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.christmas-waves::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(124, 58, 237, 0.1),
        rgba(167, 139, 250, 0.1),
        rgba(139, 92, 246, 0.1),
        transparent
    );
    animation: wave-move 10s linear infinite;
}

.christmas-waves::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139, 92, 246, 0.1),
        rgba(167, 139, 250, 0.1),
        rgba(124, 58, 237, 0.1),
        transparent
    );
    animation: wave-move 15s linear infinite reverse;
}

@keyframes wave-move {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0%);
    }
}

