/* ===== Reset e fonte ===== */
html,
body {
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ===== Body ===== */
body {
    background-color: #d3d3d3;
    color: #111;
    min-height: 100vh;
    line-height: 1.5;
}

/* ===== HEADER PADRÃO (DESKTOP) ===== */
header {
    background-color: #111111;
    color: white;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    width: 100%;
}

.header-container {
    max-width: 1100px; /* Use max-width para centrar, como no seu index.html */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 90px;
    width: auto;
}

/* HAMBURGUER (ESCONDIDO NO DESKTOP) */
.hamburger {
    display: none; /* Escondido no desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger div {
    height: 3px;
    background-color: #f1f1f1;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ANIMAÇÃO HAMBURGUER/X */
.hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* NAVBAR (HORIZONTAL NO DESKTOP) */
.navbar {
    display: flex;
    align-items: center;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #00b686;
    transition: width 0.3s ease;
}

.navbar a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.navbar a:hover::after {
    width: 100%;
}

/* ===== RESPONSIVIDADE (MOBILE) ===== */
@media (max-width: 700px) {
    .logo {
        max-height: 60px; /* Reduz tamanho da logo */
    }

    /* ESSENCIAL PARA EXPANSÃO: logo e hamburger lado a lado, e navbar quebra a linha */
    .header-container {
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center; 
        flex-wrap: wrap; 
        gap: 0; 
        position: relative;
    }

    .hamburger {
        display: flex; /* Mostra o botão hamburger */
    }

    /* NAVBAR (VERTICAL NO MOBILE, DENTRO DO FLUXO DO HEADER) */
    .navbar {
        flex-direction: column;
        align-items: end;
        background-color: #111111;
        width: 100%;
        order: 10; /* Força a navbar a aparecer abaixo da logo/hamburger */
        
        /* O CÓDIGO ABAIXO PERMITE A EXPANSÃO DA HEADER */
        overflow: hidden;
        max-height: 0; 
        transition: max-height 0.4s ease;
        /* REMOVIDO: position: absolute; */
    }

    .navbar.active {
        max-height: 300px; /* Expande e empurra o conteúdo */
    }

    .navbar a {
        display: block; /* Garante que os links ocupem a largura e fiquem verticais */
        margin: 10px 0;
        padding: 10px 20px; /* Adiciona algum padding se desejar */
    }
}


/* ===== MAIN (CONTEÚDO DO FORMULÁRIO) ===== */

/* Usei o CSS do cadastro.css que você forneceu anteriormente para o formulário */
.main-content-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 90px);
    padding-top: 20px;
    padding-bottom: 20px;
}

.container {
    background-color: #f9f9f9;
    color: #111;
    width: 400px;
    max-width: 90%;
    min-height: 500px;
    margin-bottom: 30px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(83, 83, 83, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: box-shadow 0.3s ease;
}

.container:hover {
    box-shadow: 0 0 45px rgba(221, 221, 221, 0.3);
}

/* Título */
h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #00b686;
    text-transform: uppercase;
}

/* Labels */
label {
    font-size: 16px;
    color: #111;
    margin-top: 10px;
    display: block;
}

/* Inputs */
input {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
    border-color: #00b686;
    box-shadow: 0 0 5px #00b686;
    outline: none;
}

/* Botão */
button {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: linear-gradient(90deg, #00b686, #00e6a0);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 20px rgba(128, 128, 128, 0.5);
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(128, 128, 128, 1);
}

/* Link de login centralizado */
.a-padding {
    padding-top: 25px;
    padding-bottom: 10px;
    text-align: center;
}

.a-padding a {
    color: #00b686;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.a-padding a:hover {
    color: #009965;
    text-decoration: underline;
}

/* RESPONSIVIDADE ESPECÍFICA DE FORMULÁRIO */
@media (max-width: 500px) {
    .container {
        width: 90%;
        padding: 20px;
        min-height: auto;
    }

    h1 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    input,
    button {
        font-size: 16px;
        padding: 14px;
    }

    .main-content-wrapper {
        min-height: auto;
        padding: 20px 10px;
    }
}
