/* ==========================================================
   MODAL DE LOGIN
========================================================== */

.login-modal {

    position: fixed;
    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


/* ==========================================================
   MODAL ABERTO
========================================================== */

.login-modal.ativo {

    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* ==========================================================
   OVERLAY
========================================================== */

.login-overlay {

    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(3px);
}


/* ==========================================================
   CAIXA
========================================================== */

.login-box {

    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 400px;

    padding: 34px 30px 30px;

    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25);

    transform: translateY(20px) scale(0.98);

    transition:
        transform 0.25s ease;
}


.login-modal.ativo .login-box {

    transform: translateY(0) scale(1);
}


/* ==========================================================
   FECHAR
========================================================== */

.login-fechar {

    position: absolute;

    top: 14px;
    right: 14px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: #6b7280;

    cursor: pointer;

    font-size: 16px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.login-fechar:hover {

    background: #f3f4f6;
    color: #111827;
}


/* ==========================================================
   CABEÇALHO
========================================================== */

.login-header {

    text-align: center;

    margin-bottom: 26px;
}


.login-icon {

    width: 58px;
    height: 58px;

    margin: 0 auto 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eef4ff;

    color: #2563eb;

    font-size: 24px;
}


.login-header h2 {

    margin: 0 0 6px;

    color: #111827;

    font-size: 24px;
    font-weight: 700;
}


.login-header p {

    margin: 0;

    color: #6b7280;

    font-size: 14px;
}


/* ==========================================================
   FORMULÁRIO
========================================================== */

.login-form {

    display: flex;
    flex-direction: column;

    gap: 20px;
}


.login-field {

    display: flex;
    flex-direction: column;

    gap: 7px;
}


.login-field label {

    color: #374151;

    font-size: 14px;
    font-weight: 600;
}


/* ==========================================================
   INPUT
========================================================== */

.login-input {

    position: relative;

    display: flex;
    align-items: center;
}


.login-input > i {

    position: absolute;

    left: 14px;

    color: #9ca3af;

    font-size: 17px;

    pointer-events: none;
}


.login-input input {

    width: 100%;
    height: 48px;

    padding:
        0 45px 0 42px;

    border: 1px solid #d1d5db;

    border-radius: 10px;

    background: #ffffff;

    color: #111827;

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.login-input input::placeholder {

    color: #9ca3af;
}


.login-input input:focus {

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}


/* ==========================================================
   MOSTRAR SENHA
========================================================== */

.login-mostrar-senha {

    position: absolute;

    right: 7px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 7px;

    background: transparent;

    color: #6b7280;

    cursor: pointer;

    font-size: 16px;
}


.login-mostrar-senha:hover {

    background: #f3f4f6;

    color: #111827;
}


/* ==========================================================
   BOTÃO ENTRAR
========================================================== */

.login-submit {

    width: 100%;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border: 0;
    border-radius: 10px;

    background: #2563eb;

    color: #ffffff;

    font-family: inherit;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.login-submit:hover {

    background: #1d4ed8;
}


.login-submit:active {

    transform: translateY(1px);
}


/* ==========================================================
   BLOQUEAR SCROLL
========================================================== */

body.login-aberto {

    overflow: hidden;
}


/* ==========================================================
   RESPONSIVO
========================================================== */

@media (max-width: 480px) {

    .login-modal {

        padding: 15px;
    }


    .login-box {

        padding:
            32px 22px 26px;

        border-radius: 14px;
    }


    .login-header h2 {

        font-size: 21px;
    }

}
        .login-mensagem {
            width: 100%;
            margin: 0 0 20px 0;
            padding: 12px 15px;
            border-radius: 8px;
            font-size: 14px;
            line-height: 1.4;
            box-sizing: border-box;
        }

        .login-mensagem.erro {
            background-color: #fef2f2;
            border: 1px solid #fca5a5;
            color: #b91c1c;
        }