:root {
    --login-b-radius: 12px;
    --login-height: 52px;
    --auth-purple: #5b21b6;
    --auth-orange: #f97316;
    --auth-input-bg: #f0ebf8;
    --auth-input-border: #ddd6f0;
    --auth-text: #1e1440;
    --auth-text-muted: #7c6fa0;
}

* {
    font-family: 'Lato', serif !important;
}

.alert {
    position: absolute;
    bottom: 0;
    z-index: 3;
}

/* ── Fundo ──────────────────────────────────────────────────── */
.auth-fluid {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 56px; /* espaço para o footer fixo não sobrepor o card */
    background-color: #2a0050;
    background-image: url('/assets/images/new_brand/0 (1).png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* ── Rodapé fixo ─────────────────────────────────────────────── */
.rights-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: transparent;
    z-index: 10;
}

.rights-container p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    margin: 0;
    font-weight: 400;
}

/* ── Logo ───────────────────────────────────────────────────── */
.logo__sistema {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 32px;
}

/* ── Card ───────────────────────────────────────────────────── */
.formCard {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 40px 48px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    width: 100%;
    max-width: 480px;
}

.formCard__titulo {
    font-size: 22px;
    font-weight: 700 !important;
    text-align: center;
    color: var(--auth-text) !important;
    margin: 0 0 6px;
}

.formCard__descricao {
    font-weight: 400 !important;
    font-size: 14px;
    text-align: center;
    color: var(--auth-text-muted) !important;
    margin: 0 0 24px;
    width: 100%;
}

/* ── Inputs ─────────────────────────────────────────────────── */
.custom__input {
    height: var(--login-height);
    background-color: var(--auth-input-bg);
    border-radius: var(--login-b-radius);
    border: 1.5px solid var(--auth-input-border);
    color: var(--auth-text);
    font-size: 15px;
    font-weight: 400;
    transition: border-color 150ms ease;

    &::placeholder {
        color: var(--auth-text-muted);
    }

    &:focus {
        border-color: var(--auth-purple);
        background-color: #f7f3fd;
        box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.1);
    }

    &:hover {
        border-color: #c4b8e0;
    }
}

.password__icon {
    border-radius: 0 var(--login-b-radius) var(--login-b-radius) 0;
    background: var(--auth-input-bg);
    border: 1.5px solid var(--auth-input-border);
    border-left: none;
    color: var(--auth-purple);
    display: flex;
    align-items: center;
    height: var(--login-height);
    padding: 0 14px;
    cursor: pointer;
    transition: background 150ms ease;

    &:hover {
        background: #e8e0f5;
    }
}

.password__icon i {
    font-size: 18px;
    color: var(--auth-purple);
}

/* ── Botão principal ────────────────────────────────────────── */
.custom__button {
    border-radius: var(--login-b-radius);
    border: none;
    height: var(--login-height);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
    color: #fff;
    background: linear-gradient(to right, #f97316 0%, #ea580c 100%);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 0;
    width: 100%;
    transition: all 200ms ease-out;

    &:hover {
        filter: brightness(0.9);
        box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45);
    }

    &:active {
        scale: 0.98;
    }

    &:disabled {
        background: #e5d8f0;
        color: #a89cc0 !important;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
}

.custom__buttonSecondary {
    border-radius: var(--login-b-radius);
    border: 1.5px solid var(--auth-input-border);
    height: var(--login-height);
    box-shadow: none;
    color: var(--auth-text);
    background: #fff;
    font-weight: 500;
    font-size: 14px;
    padding: 0;
    width: 100%;
    transition: all 200ms ease-out;

    &:hover {
        background: var(--auth-input-bg);
    }

    &:active {
        scale: 0.98;
    }
}

/* ── Links e textos ─────────────────────────────────────────── */
.texto__link {
    color: var(--auth-purple) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: flex !important;
    text-align: center;
    text-decoration: none;
}

.texto__link:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.texto__opcaoCadastro {
    color: var(--auth-text) !important;
    font-size: 15px !important;
    display: flex !important;
    font-weight: 400 !important;
}

.texto__suporte {
    color: var(--auth-text-muted) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    margin-top: 20px;
    margin-bottom: -12px;
    text-align: center;
}

.texto__suporte a {
    color: var(--auth-purple) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-left: 4px;
    text-decoration: underline;
}

.texto__suporte a:hover {
    opacity: 0.8;
}

.texto__reenviar {
    color: var(--auth-text-muted) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-align: center;
    margin: 8px auto 0;
    width: max-content;
}

.texto__reenviar button {
    color: var(--auth-purple) !important;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    font-weight: 600;
    text-decoration: underline;
    font-size: 14px;
}

.texto__reenviar button:not(:disabled) {
    cursor: pointer;
}

.texto__reenviar button:not(:disabled):hover {
    opacity: 0.8;
}

/* ── Caps lock ──────────────────────────────────────────────── */
#caps-warning {
    width: 100%;
    text-align: center;
    padding: 8px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    display: none;
    background: #fef2f2;
    border-radius: 6px;
    border: 1px solid #fecaca;
    margin-bottom: 8px;
}

/* ── MFA inputs ─────────────────────────────────────────────── */
.mfa__input-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0;
    gap: 8px;
}

.mfa__input {
    font-size: 18px;
    font-weight: 700;
    border-radius: 10px;
    border: 2px solid var(--auth-input-border);
    color: var(--auth-text);
    width: 100%;
    height: 52px;
    background-color: var(--auth-input-bg);
    outline: none;
    transition: all 150ms ease-in;
    text-align: center;

    &:focus {
        border: 2px solid var(--auth-purple);
        background-color: #f7f3fd;
        scale: 1.05;
        box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.1);
    }

    &:disabled {
        filter: brightness(0.9);
        opacity: 0.6;
    }
}

/* ── Logo tamanho grande (login) ─────────────────────────────── */
.logo__sistema--lg {
    height: 84px;
}

/* ── Input com ícone absoluto ───────────────────────────────── */
.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-left-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 2;
    transition: color 150ms ease;
}

.auth-input-right-icon {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-purple);
    cursor: pointer;
    border-radius: 0 var(--login-b-radius) var(--login-b-radius) 0;
    transition: background 150ms ease;
    text-decoration: none;
    z-index: 2;
}

.auth-input-right-icon:hover {
    background: rgba(91, 33, 182, 0.06);
}

.auth-input-right-icon i {
    font-size: 18px;
}

.custom__input--has-icon {
    padding-left: 42px !important;
}

.custom__input--has-icon-right {
    padding-right: 48px !important;
}

.auth-input-wrapper:focus-within .auth-input-left-icon {
    color: var(--auth-purple);
}

.auth-show-password-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--auth-text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 150ms ease;
    line-height: 1;
}

.auth-show-password-btn:hover {
    color: var(--auth-purple);
}

/* ── Checkbox ───────────────────────────────────────────────── */
.form-check-input:checked {
    background-color: var(--auth-purple) !important;
    border: none;
}

.required:after {
    content: '*';
    color: #dc2626;
    margin-left: 2px;
}

/* ══════════════════════════════════════════════════════════════
   AUTH SHARED DESIGN SYSTEM v2
   Usado por: email.blade, reset.blade, mfa.blade, mfa_channel.blade
══════════════════════════════════════════════════════════════ */

/* ── Page wrapper ──────────────────────────────────────────── */
.auth-page-wrap {
    width: 100%;
    max-width: 480px;
    padding: 0 20px;
}

/* ── Logo acima do card ────────────────────────────────────── */
.auth-logo {
    display: block;
    height: 90px;
    width: auto;
    object-fit: contain;
    margin: 0 auto 28px;
}

/* ── Card branco ───────────────────────────────────────────── */
.auth-card {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 44px 48px 40px;
    width: 100%;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
}

.auth-card__header { margin-bottom: 28px; }

.auth-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #1e1440;
    text-align: center;
    margin: 0 0 6px;
    line-height: 1.3;
}

.auth-card__subtitle {
    font-size: 14px;
    color: #7c6fa0;
    text-align: center;
    margin: 0;
    line-height: 1.55;
}

/* ── Campo ─────────────────────────────────────────────────── */
.auth-field { margin-bottom: 18px; }

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #3d2e6b;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

/* ── Input base ────────────────────────────────────────────── */
.auth-input {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    border: 1.5px solid #e0d6f5;
    border-radius: 10px;
    background: #ffffff;
    color: #1e1440;
    font-size: 15px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    outline: none;
    box-sizing: border-box;
    transition: border-color 180ms ease, box-shadow 180ms ease;
    -webkit-appearance: none;
}

.auth-input:focus {
    border-color: #9b72e8;
    box-shadow: 0 0 0 3px rgba(155, 114, 232, 0.15);
}

.auth-input::placeholder { color: #b0a4cc; }

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus,
.auth-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 100px #ffffff inset !important;
    box-shadow:         0 0 0 100px #ffffff inset !important;
    -webkit-text-fill-color: #1e1440 !important;
    caret-color: #1e1440;
}

.auth-input--error {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.14) !important;
}

/* ── Input com botão olho ──────────────────────────────────── */
.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap .auth-input { padding-right: 50px; }

.auth-eye-btn {
    position: absolute;
    right: 2px;
    top: 2px;
    bottom: 2px;
    width: 46px;
    background: transparent;
    border: none;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c6fa0;
    cursor: pointer;
    transition: color 150ms;
}

.auth-eye-btn:hover { color: #5b21b6; }

.auth-eye-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

/* ── Mensagem de erro por campo ────────────────────────────── */
.auth-field-error {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

/* ── Alert block (topo do card) ────────────────────────────── */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.5;
}

.auth-alert--error {
    background: #fff5f5;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.auth-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.auth-alert svg { flex-shrink: 0; margin-top: 1px; }

/* ── Botão primário (CTA) ──────────────────────────────────── */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.34);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 8px;
    transition: filter 180ms ease, box-shadow 180ms ease, transform 80ms ease;
}

.auth-btn:hover {
    filter: brightness(0.93);
    box-shadow: 0 6px 22px rgba(234, 88, 12, 0.44);
}

.auth-btn:active  { transform: scale(0.985); }

.auth-btn:disabled {
    background: #e5d8f0;
    color: #a89cc0;
    box-shadow: none;
    cursor: default;
    filter: none;
}

/* ── Footer do card (links) ────────────────────────────────── */
.auth-card-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #7c6fa0;
    line-height: 1.6;
}

.auth-card-footer a {
    color: #5b21b6;
    font-weight: 600;
    text-decoration: none;
}

.auth-card-footer a:hover { text-decoration: underline; }

/* ── Divisor ────────────────────────────────────────────────── */
.auth-divider {
    height: 1px;
    background: #f0ebf8;
    margin: 24px 0;
}

/* ── Indicador de força de senha ───────────────────────────── */
.pass-strength { margin-top: 10px; }

.pass-strength__bars {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.pass-strength__bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #e9dff6;
    transition: background 300ms ease;
}

.pass-strength__bar--weak   { background: #ef4444; }
.pass-strength__bar--fair   { background: #f59e0b; }
.pass-strength__bar--good   { background: #3b82f6; }
.pass-strength__bar--strong { background: #22c55e; }

.pass-strength__label {
    font-size: 12px;
    font-weight: 600;
    color: #9486b8;
    transition: color 300ms;
}

.pass-rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 10px;
    margin-top: 10px;
    padding: 0;
    list-style: none;
}

.pass-rule {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9486b8;
    transition: color 200ms;
}

.pass-rule--ok { color: #16a34a; }

.pass-rule__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d8cff0;
    flex-shrink: 0;
    transition: background 200ms;
}

.pass-rule--ok .pass-rule__dot { background: #16a34a; }

/* ── MFA digit inputs ──────────────────────────────────────── */
.mfa-digits {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 28px 0 24px;
}

.mfa-digit {
    width: 52px;
    height: 58px;
    border: 2px solid #e0d6f5;
    border-radius: 12px;
    background: #faf7ff;
    color: #1e1440;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 100ms ease;
    caret-color: #5b21b6;
    -webkit-appearance: none;
}

.mfa-digit:focus {
    border-color: #7c3aed;
    background: #f5f0ff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
    transform: scale(1.06);
}

.mfa-digit:disabled {
    opacity: 0.55;
    filter: brightness(0.95);
}

/* ── Resend timer ──────────────────────────────────────────── */
.mfa-resend {
    text-align: center;
    margin-top: 8px;
}

.mfa-resend-btn {
    background: none;
    border: none;
    color: #5b21b6;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    transition: opacity 150ms;
}

.mfa-resend-btn:hover:not(:disabled) { opacity: 0.75; }

.mfa-resend-btn:disabled {
    color: #a89cc0;
    text-decoration: none;
    cursor: default;
}

/* ── Channel badge (2FA) ───────────────────────────────────── */
.mfa-channel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0ebf8;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #5b21b6;
    margin: 0 auto 24px;
}

/* ══════════════════════════════════════════════════════════════
   AUTH INPUT GROUP — padrão de input com ícone lilás à esquerda
   Mesmo padrão visual do login (.lf-group), reutilizável em
   todas as telas de auth (email, reset, etc.)
══════════════════════════════════════════════════════════════ */
.auth-input-group {
    display: flex;
    align-items: stretch;
    height: 52px;
    border: 1.5px solid #e0d6f5;
    border-radius: 13px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.auth-input-group:focus-within {
    border-color: #9b72e8;
    box-shadow: 0 0 0 3px rgba(155, 114, 232, 0.16);
}

/* Bloco lilás com ícone */
.auth-input-group__icon {
    width: 56px;
    flex-shrink: 0;
    background: #ede9f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-input-group__icon svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Campo de texto */
.auth-input-group__field {
    flex: 1;
    min-width: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 14px;
    height: 100%;
    font-size: 15px;
    color: #1e1440;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
}

.auth-input-group__field::placeholder { color: #b0a4cc; }
.auth-input-group__field:focus         { outline: none !important; box-shadow: none !important; }

.auth-input-group__field:-webkit-autofill,
.auth-input-group__field:-webkit-autofill:hover,
.auth-input-group__field:-webkit-autofill:focus,
.auth-input-group__field:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 100px #ffffff inset !important;
    box-shadow:         0 0 0 100px #ffffff inset !important;
    -webkit-text-fill-color: #1e1440 !important;
    caret-color: #1e1440;
}

/* Botão olho (direita, sem fundo) */
.auth-input-group__eye {
    width: 46px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c6fa0;
    cursor: pointer;
    padding: 0;
    transition: color 150ms;
}

.auth-input-group__eye:hover { color: #5b21b6; }

.auth-input-group__eye svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

/* ── Responsivo ─────────────────────────────────────────────── */
@media (max-width: 560px) {
    .auth-card { padding: 32px 24px 28px; }
    .auth-logo { height: 72px; margin-bottom: 20px; }
    .auth-page-wrap { padding: 0 12px; }
    .pass-rules { grid-template-columns: 1fr; }
    .mfa-digit { width: 44px; height: 52px; font-size: 20px; }
    .mfa-digits { gap: 7px; }
}
