* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;       
    margin: 0;
    transition: background-color 0.5s ease, color 0.5s ease; 
}

.main-content {  
    width: 100%;
    flex: 1 0 auto;     
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 180px 30px;
    box-sizing: border-box;

    background-image: url("/static/homepage/images/roleta.JPG");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.header {
    width: 100%;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #1f1f1f;
    border-bottom: 2px solid #444;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

h1 {
    font-size: 20px;
    color: #fff;
}

.nav {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    flex-wrap: nowrap;
}

.nav a {
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    border: 1px solid transparent;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.nav a:hover {
    background-color: #0056b3;
    transform: scale(1.1);
    border: 1px solid #007bff;
    box-shadow: 0 8px 15px rgba(0, 86, 179, 0.5);
}

.nav a:focus {
    outline: none;
}

.nav a:focus-visible {
    outline: 2px dashed #007bff;
    outline-offset: 3px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    height: 50px;
    width: auto;
    border-radius: 12px;      
    border: 2px solid #007bff; 
    box-sizing: border-box;   
    transition: border-color 0.3s ease;
}

.brand img:hover {
    border-color: #0056b3;
}

/* Container do login */
.login-container {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    width: 350px;
    text-align: left;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

/* Formulário */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Campos */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    font-size: 14px;
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
}


.form-group label {
    font-weight: normal;
    margin-bottom: 4px;
    color: #e0e0e0;
    text-align: left;
}

.error {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-top: 2px;
    text-align: left;
}

.captcha {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.captcha img {
    margin-bottom: 10px;
    border-radius: 5px;
}

button {
    background-color: #007bff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

p {
    font-size: 14px;
}

p a {
    color: #00aaff;
    text-decoration: none;
    font-weight: bold;
}

p a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .login-container {
        width: 90%;
    }

    .nav a {
        width: auto; 
        padding: 6px 12px;
    }

    h1 {
        font-size: 17px;
        color: #fff;
    }
}
