:root{
  --primary: #0F3E7A; /* azul escuro Embasa */
  --accent:  #1F6DB3; /* azul médio */
  --muted:   #8AA5C4; /* azul suave para textos secundários */
}

/* Definições gerais */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh; /* altura dinâmica */
    background: #f8f9fa;
    color: #0F3E7A; /* era #0070a3 */
    flex-direction: column;
}

.container {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.content {
    padding: 30px;
    background: #fff; /* Fundo branco para suavizar o design */
    color: #0F3E7A;   /* era #0070a3 */
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.logo-container {
    margin-bottom: 20px;
}

/* NOVO: tamanho automático, com limites para evitar blur/estouro */
.logo {
    display: inline-block;
    width: clamp(200px, 35vw, 340px); /* cresce sem estourar e sem forçar upscale bobo */
    height: auto;                     /* mantém proporção da imagem */
    max-width: 100%;                  /* respeita container em telas pequenas */
    image-rendering: auto;            /* nítido para raster normal */
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: bold;
}

p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.text-info {
    font-size: 1.2rem;
    margin-bottom: 30px;
    background: rgba(31,109,179,0.06); /* era rgba(0,166,118,0.06) */
    padding: 15px;
    border-radius: 10px;
    color: #0F3E7A; /* era #0070a3 */
}

/* Spinner de carregamento centralizado */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1F6DB3; /* era #00a676 */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Texto de "Aguarde" com pontinhos */
.aguarde {
    font-size: 1.5rem;
    margin-top: 20px;
    font-weight: bold;
    color: #1F6DB3; /* era #00a676 */
}

.dots {
    animation: dots 1.5s infinite steps(5, end);
}

@keyframes dots {
    0%, 100% { content: ''; }
    20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80% { content: '....'; }
}

/* Estilos do botão */
.btn-redirect {
    display: inline-block;
    padding: 15px 30px;
    background: #0F3E7A; /* era #0070a3 */
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(15,62,122,0.12); /* era rgba(0,112,163,0.12) */
    transition: all 0.3s ease-in-out;
    margin-top: 30px;
    margin-bottom: 40px;
}

.btn-redirect:hover {
    background: #0D3568; /* era #005f85 */
    transform: scale(1.1);
}

/* Destaque para "2ª via" */
.via-info {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 20px;
    color: #1F6DB3; /* era #00a676 */
}

/* Responsividade para Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .content {
        padding: 20px;
        width: 90%;
    }

    .logo {
        width: clamp(180px, 55vw, 300px);
    }

    .btn-redirect {
        display: inline-block;
        padding: 15px 30px;
        background: #0F3E7A; /* era #0070a3 */
        color: #fff;
        text-decoration: none;
        font-size: 1.2rem;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(15,62,122,0.12); /* era rgba(0,112,163,0.12) */
        transition: all 0.3s ease-in-out;
        margin-top: 30px;
        margin-bottom: 40px;
    }
}
