/* ================================================================
   page-auth.css  –  ACECA | Área do Sócio
   Mantido o CSS original + melhorias mobile + novos componentes
   ================================================================ */

/* ─── Wrapper principal ───────────────────────────────────────── */
.authentication-wrapper {
    display: flex;
    flex-basis: 100%;
    min-height: 100vh;
    width: 100%;
}

    .authentication-wrapper .authentication-inner {
        width: 100%;
    }

    .authentication-wrapper.authentication-basic {
        align-items: center;
        justify-content: center;
    }

    .authentication-wrapper .auth-cover-illustration {
        z-index: 1;
        max-inline-size: 38rem;
    }

    .authentication-wrapper .authentication-image-object-left {
        position: absolute;
        bottom: 6%;
        inset-inline-start: 4%;
    }

    .authentication-wrapper .authentication-image-object-right {
        position: absolute;
        bottom: 7%;
        inset-inline-end: 4%;
    }

    .authentication-wrapper .authentication-image {
        z-index: -1;
        inline-size: 100%;
        position: absolute;
        inset-inline-start: 0;
        bottom: 0;
    }

    .authentication-wrapper .authentication-image-model {
        width: 768px;
    }

    .authentication-wrapper.authentication-cover {
        align-items: flex-start;
    }

        .authentication-wrapper.authentication-cover .authentication-inner {
            min-height: 100vh;
            position: relative;
        }

html:not([dir=rtl]) .authentication-wrapper.authentication-cover .authentication-image {
    inset-inline-start: unset;
}

.authentication-wrapper.authentication-cover .authentication-image-tree {
    position: absolute;
    bottom: 4rem;
    left: 3rem;
}

.authentication-wrapper.authentication-basic .authentication-inner {
    max-width: 460px;
}

.authentication-wrapper .auth-input-wrapper .auth-input {
    max-width: 50px;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    font-size: 150%;
}

/* ─── OTP / 2-steps ──────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .authentication-wrapper .auth-input-wrapper .auth-input {
        font-size: 1.125rem;
    }
}

@media (max-width: 1199.98px) {
    .authentication-cover .authentication-image-model {
        position: relative;
        width: 575px;
        top: 1rem;
    }
}

#twoStepsForm .fv-plugins-bootstrap5-row-invalid .form-control {
    border-width: 2px;
    border-color: #ff4c51;
}

@media (max-width: 575.98px) {
    .numeral-mask-wrapper .numeral-mask {
        padding: 0 !important;
    }

    .numeral-mask:not(:focus) {
        margin-inline: 1px !important;
    }

    .numeral-mask:focus {
        margin-inline: auto !important;
    }
}

.light-style .authentication-wrapper .authentication-bg {
    background-color: #fff;
}

.dark-style .authentication-wrapper .authentication-bg {
    background-color: #312d4b;
}

[dir=rtl] .authentication-image-tree {
    right: 3rem;
    left: auto;
}

/* ─── Mensagem de erro inline ────────────────────────────────── */
.login-err {
    background: #fff0f0;
    border: 1px solid #ffb3b3;
    border-radius: 6px;
    color: #d63031;
    font-size: .88rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    padding: .75rem 1rem;
}

.login-ok {
    background: #f0fff4;
    border: 1px solid #b3ffd1;
    border-radius: 6px;
    color: #00b894;
    font-size: .88rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    padding: .75rem 1rem;
}

/* ─── Indicador de força da senha ────────────────────────────── */
.pwd-strength-wrap {
    margin: .5rem 0 1rem;
}

.pwd-strength-bar {
    background: #e9ecef;
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
    width: 100%;
}

.pwd-strength-fill {
    border-radius: 4px;
    height: 6px;
    transition: width .3s ease, background .3s ease;
    width: 0%;
}

.pwd-strength-label {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    margin-top: .3rem;
}

/* ─── Logo row (logo + nome) ─────────────────────────────────── */
.login-logo-row {
    align-items: center;
    display: flex;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.login-logo-img img {
    border-radius: 8px;
    display: block;
    height: auto;
    max-width: 48px;
}

/* ─── Spinner no botão ───────────────────────────────────────── */
.btn-spinner {
    align-items: center;
    display: inline-flex;
    gap: .4rem;
}

@keyframes ri-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ri-spin {
    animation: ri-spin .8s linear infinite;
    display: inline-block;
}

/* ─── MOBILE  (≤ 480px) ──────────────────────────────────────── */
@media (max-width: 480px) {

    /* Remove padding lateral excessivo */
    .authentication-inner {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Card de login ocupa quase toda a tela */
    .pg-login {
        border-radius: 12px;
        padding: 1.5rem 1.25rem !important;
        width: 100% !important;
    }

    /* Logo menor */
    .login-logo-img img {
        max-width: 36px;
    }

    /* Título compacto */
    .pg-login h2 {
        font-size: 1.3rem !important;
        margin-bottom: .4rem !important;
    }

    .lc-sub {
        font-size: .82rem !important;
        margin-bottom: 1rem !important;
    }

    /* Campos com tamanho mínimo de toque (48px) */
    .fg .form-control {
        font-size: 1rem;
        min-height: 48px;
        padding: .65rem .85rem;
    }

    /* Botão entrar – toque confortável */
    .btn-entrar {
        font-size: 1rem !important;
        min-height: 48px !important;
        width: 100% !important;
    }

    /* Eye-button maior para toque */
    .eye-btn {
        min-height: 44px;
        min-width: 44px;
        padding: .5rem !important;
    }

    /* Link "Esqueceu a senha?" centralizado */
    .login-opts {
        justify-content: center !important;
        text-align: center;
    }

    /* Textos menores no rodapé */
    .lc-cadastro,
    .back-site {
        font-size: .82rem;
    }

    /* SweetAlert2 cabe melhor em telas pequenas */
    .swal2-popup {
        font-size: .9rem !important;
        padding: 1.5rem !important;
        width: 90vw !important;
    }
}

/* ─── MOBILE  (481px – 767px) ────────────────────────────────── */
@media (min-width: 481px) and (max-width: 767px) {
    .pg-login {
        padding: 2rem 1.75rem !important;
    }

    .btn-entrar {
        width: 100% !important;
    }
}
