/* ======== ESTILO GLOBAL LOGIN ======== */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #101020 0%, #161631 60%, #0d0d1a 100%);
    color: #ffffff;
}


/* ======== CONTAINER PRINCIPAL ======== */
main {
    width: 100%;
    min-height: calc(100vh - 80px); /* ocupa a tela abaixo do header */
    margin-top: 80px;               /* evita sobreposição com o header fixo */

    display: flex;
    justify-content: center;        /* centro horizontal */
    align-items: center;            /* centro vertical */

    padding: 20px;
}


form {
    width: 100%;
    max-width: 420px;   /* largura perfeita */
    padding: 30px 0 40px 0;

    background: linear-gradient(180deg, #1b1b3a 0%, #151530 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);

    animation: fadeIn 0.8s ease;
}


/* ======== TÍTULO DO SISTEMA ======== */
form h1 {
    text-align: center;
    color: #ff6b1a;
    font-size: 2.2em;
    margin: 40px 0 10px 0;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ======== BLOCO DO LOGIN ======== */
form .bloco_acesso {
    display: flex;
    flex-direction: column;

    padding: 30px 0 40px 0;

}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Subtítulo “Login” */
form .bloco_acesso h2 {
    color: #ff6b1a;
    text-align: center;
    font-size: 1.6em;
    margin-bottom: 20px;
}

/* Campos de entrada */
form .bloco_acesso input {
    width: 70%;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    justify-content: center;
    display: flex;
    margin: 12px auto;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    outline: none;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s ease;
}

form .bloco_acesso input:focus {
    border-color: #ff6b1a;
    box-shadow: 0 0 8px rgba(255, 107, 26, 0.3);
}

/* Botão de login */
form .bloco_acesso button {
    width: 70%;
    height: 45px;
    margin: 25px auto 0 auto;
    display: block;
    color: #fff;
    background: #ff6b1a;
    font-size: 1em;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 107, 26, 0.3);
}

form .bloco_acesso button:hover {
    background: #ff4800;
    box-shadow: 0 0 20px rgba(255, 72, 0, 0.4);
}

/* Mensagens de erro */
h2 {
    text-align: center;
    color: #ff4800;
    background: rgba(255, 72, 0, 0.1);
    padding: 10px;
    margin-top: -40px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95em;
}

/* ======== ANIMAÇÃO ======== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}