/* =========================================================
   PROPOSIA — ACESSO (login)
   ========================================================= */
html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

/* ----- HEADER (só logo) ----- */
.acesso-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px 80px;
    z-index: 10;
}

.acesso-header .logo img {
    height: 40px;
    display: block;
}

/* ----- LAYOUT 50/50 ----- */
.acesso-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh; /* altura visível de verdade no celular (sem contar a barra do navegador) */
}

.col-login {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 380px;
}

.login-title {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.15;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.login-subtitle {
    font-size: 0.95rem;
    color: var(--cinza-texto);
    text-align: center;
    margin-bottom: 40px;
}

/* ----- CAMPOS ----- */
.input-group {
    position: relative;
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--cinza-texto);
    margin-bottom: 4px;
    font-weight: 500;
}

.acesso-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--cinza-linha);
    border-radius: 0;
    padding: 8px 30px 8px 0;
    font-size: 1.05rem;
    color: var(--preto);
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease;
}

.acesso-input::placeholder {
    color: var(--cinza-texto);
    font-weight: 500;
}

.input-icon {
    position: absolute;
    right: 0;
    bottom: 10px;
    width: 18px;
    height: 18px;
    fill: var(--cinza-linha);
    pointer-events: none;
    transition: fill 0.3s ease;
}

.acesso-input:focus,
.acesso-input:not(:placeholder-shown) {
    border-bottom-color: var(--preto);
}

.acesso-input:focus + .input-icon,
.acesso-input:not(:placeholder-shown) + .input-icon {
    fill: var(--preto);
}

.acesso-input[type="password"]:not(:placeholder-shown) {
    letter-spacing: 0.3em;
    font-family: sans-serif;
    font-size: 1.2rem;
}

.esqueci-senha {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: var(--preto);
    text-decoration: underline;
    margin-top: -12px;
    margin-bottom: 30px;
    font-weight: 500;
}

/* ----- BOTÃO ENTRAR (inativo até o formulário ser válido) ----- */
.btn-entrar {
    width: 100%;
    background-color: var(--cinza-linha);
    border: 1px solid var(--cinza-linha);
    color: var(--branco);
    padding: 16px;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 600;
    cursor: default;
    pointer-events: none;
    transition: all 0.3s ease;
}

.login-form:valid .btn-entrar {
    background-color: var(--preto);
    border-color: var(--preto);
    cursor: pointer;
    pointer-events: auto;
}

.login-form:valid .btn-entrar:hover {
    background-color: var(--branco);
    color: var(--preto);
}

.signup-text {
    text-align: center;
    margin-top: 24px;
    font-size: 0.95rem;
}

.signup-text a {
    color: var(--preto);
    text-decoration: underline;
    font-weight: 500;
}

/* ----- IMAGEM (direita) ----- */
.col-image {
    flex: 1;
    background-image: url('../../assets/img/acesso.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.over-text {
    position: absolute;
    bottom: 80px;
    right: 80px;
    color: var(--branco);
    font-size: 3.2rem;
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -0.04em;
}

/* ----- MOBILE ----- */
@media (max-width: 991px) {
    .acesso-header {
        padding: 30px 24px;
    }

    .acesso-header .logo img {
        height: 35px;
    }

    .acesso-wrapper {
        flex-direction: column;
    }

    .col-image {
        display: none;
    }

    .col-login {
        padding: 96px 24px 24px;
    }

    .login-title {
        font-size: 1.8rem;
    }
}

/* ----- Erro de login ----- */
[hidden] { display: none !important; }
.login-error {
    background: var(--vermelho-bg);
    color: var(--vermelho);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 4px 0 16px;
}
.btn-entrar:disabled { opacity: 0.6; cursor: wait; }

/* ----- olhinho da senha ----- */
.pw-eye {
    position: absolute;
    right: -8px;
    bottom: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: none;
    color: var(--cinza-linha);
    cursor: pointer;
}
.acesso-input:focus ~ .pw-eye,
.acesso-input:not(:placeholder-shown) ~ .pw-eye,
.pw-eye:hover { color: var(--preto); }
.pw-eye:focus-visible { outline: 2px solid var(--preto); outline-offset: -2px; border-radius: 8px; }
.pw-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pw-eye .eye-off { display: none; }
.pw-eye.is-on .eye-on { display: none; }
.pw-eye.is-on .eye-off { display: block; }
