/* ============================================================
   InstanyERP — Telas de entrada (/index e /entrar)
   Split-screen: painel de marca ESCURO E CHAPADO (sem bolhas, sem
   gradiente, sem glass) + coluna de conteudo que adapta ao tema.
   Poucas cores: neutros + um unico acento (o azul do ERP, vindo dos
   componentes .btn-primary/.link-primary do tema). Escopo em .ie-auth.
   ============================================================ */

.ie-auth,
.ie-auth *,
.ie-auth *::before,
.ie-auth *::after { box-sizing: border-box; }

.ie-auth {
    --brand-bg: #0e1116;
    --brand-fg: #eceef1;
    --brand-mut: rgba(236, 238, 241, 0.52);
    --brand-line: rgba(236, 238, 241, 0.12);

    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    overflow-x: hidden;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: "Inter var", "Inter", system-ui, sans-serif;
}

/* ── Painel de marca (escuro, chapado) ───────────────────── */
.ie-auth__brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(2.25rem, 3.6vw, 3.75rem);
    background: var(--brand-bg);
    color: var(--brand-fg);
    border-right: 1px solid var(--brand-line);
}
.ie-auth__brand-top {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.ie-auth__logo { height: 40px; width: auto; }
.ie-auth__badge {
    font: 500 0.72rem/1 ui-monospace, Menlo, Consolas, monospace;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-mut);
}

.ie-auth__brand-inner { max-width: 460px; }
.ie-auth__brand-title {
    margin: 0 0 1rem;
    font-weight: 700; font-size: clamp(1.9rem, 3.3vw, 2.9rem);
    line-height: 1.1; letter-spacing: -0.03em; color: var(--brand-fg);
}
.ie-auth__brand-text {
    margin: 0 0 2.2rem;
    font-size: 1rem; line-height: 1.6; color: var(--brand-mut);
}
.ie-auth__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.ie-auth__point {
    display: flex; align-items: center; gap: 0.85rem;
    font-size: 0.95rem; color: rgba(236, 238, 241, 0.82);
}
.ie-auth__point-ic {
    width: 42px; height: 42px; min-width: 42px; border-radius: 11px;
    display: grid; place-items: center; font-size: 1.3rem; color: var(--brand-fg);
    background: rgba(236, 238, 241, 0.05); border: 1px solid var(--brand-line);
}
.ie-auth__brand-foot {
    font-size: 0.78rem; color: var(--brand-mut);
    border-top: 1px solid var(--brand-line); padding-top: 1.4rem;
}

/* ── Coluna de conteudo (adapta ao tema) ─────────────────── */
.ie-auth__panel {
    display: flex; align-items: center; justify-content: center;
    padding: clamp(2rem, 4vw, 3.5rem);
    background: var(--bs-body-bg);
}
.ie-auth__inner { width: 100%; max-width: 410px; }
.ie-auth__title {
    margin: 0 0 0.5rem;
    font-weight: 700; font-size: clamp(1.55rem, 2.6vw, 2rem);
    line-height: 1.15; letter-spacing: -0.025em;
    color: var(--bs-heading-color, var(--bs-body-color));
}
.ie-auth__lead {
    margin: 0 0 1.9rem;
    font-size: 0.97rem; line-height: 1.55; color: var(--bs-secondary-color);
}
.ie-auth__meta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; margin: 0.2rem 0 1.6rem;
}
.ie-auth__cta { display: grid; gap: 0.6rem; }
.ie-auth__legal {
    margin: 1.7rem 0 0; text-align: center;
    font-size: 0.8rem; color: var(--bs-secondary-color);
}
.ie-auth__legal a { color: var(--bs-body-color); }

/* Corrige o flash branco do page-loader no tema escuro (so nestas telas) */
[data-pc-theme="dark"] #page-loader { background: var(--bs-body-bg) !important; }

/* ── Responsivo ──────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .ie-auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .ie-auth__brand {
        justify-content: flex-start; gap: 1.1rem;
        padding: 1.85rem 1.5rem 1.7rem;
        border-right: 0; border-bottom: 1px solid var(--brand-line);
    }
    .ie-auth__brand-inner { max-width: none; }
    .ie-auth__brand-text,
    .ie-auth__points,
    .ie-auth__brand-foot { display: none; }
    .ie-auth__brand-title { font-size: 1.45rem; margin: 0; }
    .ie-auth__panel { padding: 2.2rem 1.5rem 2.6rem; }
}
@media (max-width: 480px) {
    .ie-auth__brand { padding: 1.6rem 1.3rem 1.45rem; }
    .ie-auth__logo { height: 34px; }
    .ie-auth__brand-title { font-size: 1.3rem; }
    .ie-auth__panel { padding: 2rem 1.35rem 2.5rem; }
}
