body {
    background-image: url('../img/fundo_site.png');
    background-size: cover;
    background-attachment: fixed;
    background-color: #121212;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* --- Menu Superior (Idêntico ao Cadastro) --- */
header {
    width: 100%;
    padding: 15px 8%;
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

#navbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#nav_logo {
    width: 55px;
    height: auto;
    transition: transform 0.3s;
}

#nav_logo:hover {
    transform: scale(1.05);
}

#nav_list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-item a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-item a:hover {
    color: #d4af37;
}

.btn-default {
    border: 1px solid #ccc;
    background-color: transparent;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-default:hover {
    background-color: #333;
    color: white;
    border-color: #333;
}

#mobile_btn, #mobile_menu {
    display: none;
}

.butao-cont {
    list-style: none;
    text-decoration: none;
}

/* --- Container Flexbox para Centralização Perfeita --- */
.main-login {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 4px solid #d4af37;
    padding: 40px 30px;
}

form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#nome_login {
    color: #d4af37;
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subtitulo {
    color: #bbbbbb;
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.4;
}

/* --- Grupos de Input --- */
.input-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 22px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

label {
    color: #ffffff;
    font-size: 0.9em;
    font-weight: 600;
}

.esqueci-senha {
    color: #a8a8a8;
    font-size: 0.8em;
    text-decoration: none;
    transition: color 0.3s;
}

.esqueci-senha:hover {
    color: #d4af37;
    text-decoration: underline;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 14px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.95em;
    outline: none;
    transition: 0.3s;
}

input:focus {
    border-color: #d4af37;
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

/* --- Botão Acessar --- */
.btn-acessar {
    width: 100%;
    border: none;
    background-color: #d4af37;
    color: #111;
    border-radius: 8px;
    padding: 14px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    margin-bottom: 25px;
    box-shadow: 0px 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-acessar:hover {
    background-color: #c59b27;
    transform: translateY(-2px);
}

.link-cadastro {
    color: #888;
    font-size: 0.85em;
    text-align: center;
}

.link-cadastro a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
}

.link-cadastro a:hover {
    text-decoration: underline;
}

/* --- Responsividade --- */
@media screen and (max-width: 768px) {
    #nav_list, .butao-cont {
        display: none;
    }
    
    #mobile_btn {
        display: block;
        border: none;
        background-color: transparent;
        font-size: 1.8rem;
        cursor: pointer;
        color: #333;
    }
    
    #mobile_menu.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #ffffff;
        padding: 20px 0;
        box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
    }
    
    #mobile_nav_list {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
        text-align: center;
    }

    .login-container {
        padding: 35px 20px;
    }
}