@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to bottom right, #6a11cb, #2575fc);
}

.main-container {
    background-color: #f3f0ff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    text-align: center;
}

.header h1 {
    color: #333;
    font-size: 2.5em;
    margin: 0;
}

.header p {
    color: #666;
    font-size: 1.2em;
    margin-bottom: 30px;
}

.instructions {
    background-color: #ffffff;
    border-left: 4px solid #8a2be2;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 30px;
}

.instructions h2 {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    color: #333;
    margin-top: 0;
}

.instructions h2::before {
    content: '📝';
    margin-right: 10px;
    font-size: 1.5em;
}

.instructions ol {
    padding-left: 20px;
    color: #555;
    line-height: 1.6;
}

.warning-box {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    color: #8a6d3b;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
}

.warning-box strong {
    display: block;
    margin-bottom: 5px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: #555;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #8a2be2;
}

.access-code-label {
    display: block;
    text-align: left;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.input-field {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.input-field::placeholder {
    color: #aaa;
}

.submit-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(to right, #896efd, #bf6efd);
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.submit-button:hover {
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.submit-button .icon {
    margin-right: 10px;
}

.message-box {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    display: none;
    text-align: center;
    font-weight: 500;
}

.error-box {
    background-color: #fde8e8;
    border: 1px solid #f7c5c5;
    color: #c0392b;
}

.success-box {
    background-color: #e8fdef;
    border: 1px solid #c5f7d8;
    color: #27ae60;
}

/* --- NOVO ESTILO ADICIONADO --- */
.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* --- ESTILOS PARA O SPINNER DE CARREGAMENTO --- */
/* O spinner fica escondido por padrão */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3); /* Borda cinza clara semi-transparente */
    border-radius: 50%; /* Transforma em um círculo */
    border-top-color: #ffffff; /* Cor da parte que vai girar */
    animation: spin 1s ease-in-out infinite; /* Aplica a animação */
}

/* Animação de rotação */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}