/* style_login.css - Versão Final Corrigida */

:root {
    --primary-color: #334155;
    --accent-color: darkorange;
}

body {
    margin: 0;
    background-color: var(--primary-color);
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 0;
    height: 100vh;
    font-family: 'Inter', sans-serif;
}

#header_id {
    padding: 1%;
    background-color: var(--primary-color);
}

#principal {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: rgb(247, 248, 248);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    margin: 2rem auto;
}

#principal1 {
    display: none;
}

form {
    background-color: rgb(247, 248, 248);
    width: 100%;
    text-align: left;
}

.icon {
    max-width: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

label {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

/* --- ESTILO DOS INPUTS --- */

.input-grupo {
    position: relative;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
}

.input-grupo input {
    width: 100%;
    padding: 15px 10px 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
}

.input-grupo label {
    position: absolute;
    top: 12px;
    left: 10px;
    color: #888;
    font-size: 14px;
    transition: 0.2s ease-out;
    pointer-events: none;
}

.input-grupo input:focus + label,
.input-grupo input:not(:placeholder-shown) + label {
    top: 0;
    left: 5px;
    font-size: 11px;
    color: var(--primary-color);
    background: white;
    padding: 0 5px;
    font-weight: bold;
}

/* --- OLHO DA SENHA --- */

.ideye {
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 12px;
}

#eye1 {
    width: 20px;
}

/* --- BOTÕES --- */

.entrada {
    padding: 12px 20px;
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: white;
    border: none;
    background-color: var(--accent-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: 0.3s;
    border-radius: 4px;
}

.entrada:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
}

.entrada:active {
    transform: translateY(1px);
}

/* --- MODAL (MODERNO E CENTRALIZADO) --- */

dialog.modern-dialog {
    position: fixed; /* Fixa em relação à tela */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centralização Absoluta */
    margin: 0;
    
    border: none;
    border-radius: 20px;
    padding: 2.5rem;
    background-color: white;
    
    width: 90%;
    max-width: 500px;
    z-index: 1001;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

dialog.modern-dialog h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-weight: 800;
}

dialog.modern-dialog p {
    color: #475569;
    line-height: 1.6;
    font-size: 14px;
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px); /* Efeito de desfoque no fundo */
}

.btn-close-dialog {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    width: 100%;
    margin-top: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-close-dialog:hover {
    background: #1e293b;
}

/* --- FOOTER --- */

#imgfooter {
    width: 250px;
    display: block;
    margin: 10px auto;
}

#spanfooter2 {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
    font-size: 12px;
}

#recuperarsenha {
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
    color: var(--primary-color);
}

#recuperacao {
    transition: 0.3s;
}

#recuperacao:hover {
    color: #e67e00;
}

/* --- WHATSAPP --- */

#divwpp0 {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

#wppIDflui {
    width: 35px;
}