* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, rgba(30, 30, 47, 0.8), rgba(40, 42, 54, 0.8)), url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    filter: blur(8px);
    z-index: -1;
    opacity: 0.7; /* Ajusta a opacidade para dar um efeito de sobreposição */
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* Select container */
.select-container {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.select-container label {
    margin-bottom: 8px;
    font-size: 1rem;
    color: #333;
}

.select-container select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #1f1c1c;
    font-size: 1rem;
    background-color: #353535; /* Cor de fundo consistente com os inputs */
    color: #ffffff;
    appearance: none; /* Remove o estilo padrão do select para navegadores */
    -webkit-appearance: none; /* Remove estilo para navegadores Webkit */
    -moz-appearance: none; /* Remove estilo para navegadores Mozilla */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.select-container select:focus {
    border-color: #ffffff;
    outline: none;
}

.select-container select:hover {
    background-color: #242222;
}

/* Ícone de seta para o select */
.select-container {
    position: relative;
}

.select-container::after {
    content: '\25BC'; /* Seta para baixo */
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1rem;
    color: #888;
}

.form-container {
    background-color: rgba(34, 34, 37, 0.85); /* Menos transparência para melhorar a legibilidade */
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    color: #ffdd57;
}

p {
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #1f1c1c;
    font-size: 1rem;
    background-color: #353535; /* Cor de fundo mais sólida */
    color: #ffffff;
}

input::placeholder {
    color: #888;
}

button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #ffdd57;
    color: #1e1e2f;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #e6c653;
}

a {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #ffffff;
    text-decoration: none;
}

a:hover {
    color: #cac8c8;
}

.image-container {
    display: none; /* Esconde a imagem no mobile */
}

/* Logo */
.logo {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 150px;
    height: auto;
}

/* Estilo da mensagem de erro */
.error-message {
    position: fixed;
    bottom: -50px; /* Começa fora da tela */
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff4d4f;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    opacity: 0;
    z-index: 1000;
    transition: all 0.5s ease, opacity 3s ease-in-out;
}

.error-message.show {
    bottom: 20px; /* Sobe até essa posição */
    opacity: 1; /* Torna a mensagem visível */
}

/* Desaparecer após 3 segundos */
.error-message.hide {
    opacity: 0;
    bottom: 0;
}



/* Ajustes para dispositivos móveis */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
        margin: 0 10px;
    }

    input {
        font-size: 1rem;
    }

    button {
        font-size: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .main-container {
        flex-direction: column;
    }

    .form-container {
        width: 100%;
        padding: 15px;
    }

    h1 {
        font-size: 1.3rem;
    }

    button {
        font-size: 1rem;
    }

    .logo {
        max-width: 120px;
    }
}
@media (max-width: 768px) {
    .select-container {
        width: 100%;
    }
    
    .select-container select {
        font-size: 1rem;
    }
}
