/* Reset básico para garantir consistência entre navegadores */
* {
    margin: 0;
    margin-top: 2px;
    padding: 0;
    box-sizing: border-box;
}

/* Estilo para centralizar o spinner e a mensagem de "Aguarde..." */
#loading {
    text-align: center;
    margin-top: 10px;
    display: none; /* Inicialmente oculto */
}

/* Adicione este estilo para a mensagem de sucesso */
.alert-container {
    width: 100%;
    max-width: 300px; /* Mesma largura do container de login */
    margin: 0 auto 20px auto;
    text-align: center;
}

.alert-success {
    color: #176f2c;
    text-align: center;
}

.alert {
    margin: 0 auto 20px;
    max-width: 400px;
}

/* Estilo para a mensagem no topo */
.top-message {
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 5px;
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    text-align: center;
    font-size: 1em;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 95vh;
    margin: 0;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
    padding: 10px; /* Adiciona um pequeno padding para evitar que o conteúdo encoste nas bordas */
}

.container {
    width: 300px;
    max-width: 400px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

h1 {
    margin-bottom: 20px;
    font-size: 24px; /* Título maior */
    font-weight: bold;
    color: #333;
}

label {
    display: block;
    font-size: 16px; /* Labels maiores */
    color: #555;
    margin-top: 5px; /* Espaçamento maior acima dos labels */
    text-align: left;
    margin-left: 10px;
}

input {
    width: 93%; /* Ocupa 100% da largura do container */
    padding: 12px; /* Inputs mais altos e fáceis de tocar */
    margin: 8px 0 10px 0; /* Espaçamento ajustado */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px; /* Texto maior dentro dos inputs */
}

button {
    width: 60%; /* Botão ocupa toda a largura */
    padding: 10px; /* Botão mais alto */
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px; /* Texto maior no botão */
    cursor: pointer;
    margin-top: 30px;
    margin-bottom: 20px;
}

button:hover {
    background-color: #45a049;
}

.nav-link {
    display: block;
    font-size: 16px; /* Links maiores */
    color: #007bff;
    text-decoration: none;
    margin-top: 15px; /* Espaçamento maior entre os links */
}

.nav-link:hover {
    text-decoration: underline;
}

/* Mensagem de erro */
.error-message {
    color: red;
    font-size: 16px; /* Mensagem de erro maior */
    margin-bottom: 15px;
}

/* Estilo para o spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #09f;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto; /* Espaçamento acima e abaixo do spinner */
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Estilo para centralizar o spinner e a mensagem de "Aguarde..." */
#loading {
    text-align: center;
    margin-top: 10px;
}

/* ESTILOS PARA O SELO DE DOWNLOAD */
.download-section {
    margin-top: 25px;  /* Espaçamento entre o container branco e o selo */
    /* Removemos a borda e o padding pois não fazem mais sentido */
}

.download-badge {
    width: 140px; /* NOVO TAMANHO: menor e mais proporcional */
    height: auto;
    transition: opacity 0.2s;
}

.download-badge:hover {
    opacity: 0.8;
}

/* Media Query para telas menores (celulares) */
@media (max-width: 480px) {
    body {
        min-height: 100vh;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 0;
        background-color: #f0f0f0;
    }

    /* Título: Afastado do topo para equilíbrio */
    .app-header {
        margin-top: 40px; 
        margin-bottom: 15px;
        flex-shrink: 0;
        width: 100%;
    }
    
    .app-title {
        font-size: 22px;
        margin-bottom: 5px;
    }
    
    .app-subtitle {
        margin-top: 0;
        font-size: 13px;
    }

    /* Container: Ocupa a tela de forma equilibrada */
    .container {
        width: 90%;
        padding: 15px 20px;
        margin-bottom: 10px;
    }

    h1 {
        font-size: 20px;
        margin-bottom: 15px;
        display: block;
    }

    label {
        font-size: 16px; 
        margin-top: 12px;
        margin-bottom: 5px;
        text-align: left;
    }

    input {
        padding: 12px;
        font-size: 16px;
        margin-bottom: 5px;
        margin-top: 0;
    }

    button {
        padding: 12px;
        font-size: 18px;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .nav-link {
        font-size: 14px;
        padding: 5px 0;
        margin-top: 8px;
    }
    
    .error-message {
        font-size: 14px;
        margin-bottom: 10px;
    }

    /* Rodapé: Empurrado para baixo (margin-top: auto) */
    .download-section {
        margin-top: auto;
        margin-bottom: 15px;
        text-align: center;
        width: 100%;
    }

    .download-badge {
        width: 140px;
    }
    
    .privacy-link-wrapper {
        margin-bottom: 5px;
        text-align: center;
        width: 100%;
        margin-top: 0;
    }
    
    .footer-brand {
        margin-bottom: 20px;
        margin-top: 5px;
        width: 100%;
        justify-content: center;
    }
}

.app-header {
    text-align: center;
    margin-bottom: 10px;
}

.app-title {
    margin-top: 0;
    font-size: 25px;
}

.app-subtitle {
    font-size: 12px;
    color: #555;
    margin-top: 5px;
    margin-bottom: 2px;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
    font-size: 12px;
    color: #333;
}

.footer-logo {
    height: 18px;
    width: auto;
}

.footer-text {
    white-space: nowrap;
}

.privacy-link-wrapper {
    margin-top: 20px;
    text-align: center;
}

.privacy-link {
    font-size: 12px;
    color: #333;
    text-decoration: underline;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Estilo para o spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #09f;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto; /* Espaçamento acima e abaixo do spinner */
    display: none; /* Inicialmente oculto */
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

