/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #0f3460;
    --accent-color: #e94560;
    --light-accent: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --gradient-start: #0f3460;
    --gradient-end: #1a1a2e;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Container principal */
.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.content {
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

/* Ícone médico */
.logo-section {
    margin-bottom: 2rem;
}

.medical-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    color: var(--accent-color);
    animation: pulse 2s ease-in-out infinite;
}

.medical-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(233, 69, 96, 0.3));
}

/* Título */
.title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

/* Divider decorativo */
.divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 0 auto 2.5rem;
    animation: expandWidth 2s ease-in-out infinite;
}

/* Mensagem */
.message {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInOut 2s ease-in-out infinite;
}

/* Dots animados */
.dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-color);
    animation: bounce 1.4s ease-in-out infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Padrão de fundo */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.1) 2px, rgba(255,255,255,0.1) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.1) 2px, rgba(255,255,255,0.1) 4px);
    background-size: 100px 100px;
    animation: movePattern 20s linear infinite;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

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

@keyframes expandWidth {
    0%, 100% {
        width: 100px;
    }
    50% {
        width: 150px;
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes movePattern {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100px, 100px);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .message {
        font-size: 1.2rem;
        letter-spacing: 0.2em;
    }
    
    .medical-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .message {
        font-size: 1rem;
        letter-spacing: 0.15em;
    }
    
    .medical-icon {
        width: 50px;
        height: 50px;
    }
    
    .dots {
        gap: 0.8rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
