* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

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

/* Partículas de fundo */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
    animation: particles 20s ease-in-out infinite;
}

@keyframes particles {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.telegram-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 50px 35px;
    text-align: center;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    animation: cardAppear 1s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.telegram-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent,
        transparent
    );
    animation: shine 3s ease-in-out infinite;
}

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

.icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #0088cc 0%, #00a8e8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 3.5rem;
    box-shadow: 
        0 15px 35px rgba(0, 136, 204, 0.4),
        0 5px 15px rgba(0, 136, 204, 0.3);
    animation: iconPulse 2s ease-in-out infinite;
    position: relative;
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 15px 35px rgba(0, 136, 204, 0.4), 0 5px 15px rgba(0, 136, 204, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 20px 45px rgba(0, 136, 204, 0.5), 0 8px 20px rgba(0, 136, 204, 0.4);
    }
}

.icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088cc, #00a8e8, #0088cc);
    z-index: -1;
    animation: iconGlow 2s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes iconGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleAppear 1s ease-out 0.3s both;
}

@keyframes titleAppear {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.description {
    color: #666;
    margin-bottom: 35px;
    font-size: 1.1rem;
    line-height: 1.6;
    animation: textAppear 1s ease-out 0.5s both;
}

@keyframes textAppear {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-entrar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #0088cc 0%, #00a8e8 100%);
    color: white;
    text-decoration: none;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    box-shadow: 
        0 10px 30px rgba(0, 136, 204, 0.4),
        0 5px 15px rgba(0, 136, 204, 0.3);
    animation: buttonAppear 1s ease-out 0.7s both;
    position: relative;
    overflow: hidden;
}

@keyframes buttonAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-entrar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-entrar:hover::before {
    left: 100%;
}

.btn-entrar:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(0, 136, 204, 0.5),
        0 8px 25px rgba(0, 136, 204, 0.4);
}

.btn-entrar:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-entrar i {
    font-size: 1.4rem;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Responsividade para telas pequenas */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .telegram-card {
        padding: 40px 25px;
        border-radius: 25px;
    }
    
    .icon {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
    
    h1 {
        font-size: 1.7rem;
    }
    
    .description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .btn-entrar {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

/* Contador de redirecionamento */
.countdown {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 136, 204, 0.95);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 136, 204, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    animation: countdownAppear 0.5s ease-out;
}

@keyframes countdownAppear {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.countdown i {
    animation: countdownPulse 1s ease-in-out infinite;
}

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