/* Reset de Estilo */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corpo da página */
body {
    font-family: 'Roboto', sans-serif;
    background: url('../img/race.png') no-repeat center center fixed; /* Imagem de fundo */
    background-size: cover;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

/* Camada escura sobre o fundo para contraste */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Camada preta para melhorar contraste */
    z-index: -1;
}

/* Container do login */
.login-container {
    width: 100%;
    max-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Caixa de login */
.login-box {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 40px 35px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

/* Efeito de hover para a caixa de login */
.login-box:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    transform: translateY(-5px);
}

/* Logo */
.logo {
    max-width: 200px;
    margin-bottom: 20px;
}

/* Título do Login */
h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Formulário de Login */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Campos de entrada */
.login-form input {
    padding: 15px;
    font-size: 18px;
    border: 2px solid #fff;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    outline: none;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    border-color: #3e88f1; /* Cor de foco vermelho */
}

/* Botão de login */
button {
    padding: 15px;
    font-size: 18px;
    background-color: #3e88f1;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #006aff;
    transform: translateY(-5px);
}

button:active {
    transform: translateY(0);
}

/* Mensagem de erro */
.erro {
    background-color: #3e88f1;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsividade */
@media (max-width: 768px) {
    .login-container {
        padding: 15px;
    }

    .login-box {
        padding: 35px 25px;
    }

    .logo {
        max-width: 160px;
    }

    .login-form input, button {
        font-size: 16px;
    }

    h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .login-box {
        padding: 25px 15px;
    }

    .logo {
        max-width: 120px;
    }

    .login-form input, button {
        font-size: 14px;
    }

    h2 {
        font-size: 24px;
    }
}
