/* Login do portal da equipe (Central de Chamados): padrão visual do Controle de Licença
   (painel branco + painel verde-floresta). Independente de css/login.css do LoteSis. */
:root {
    --forest: #14532d;
    --leaf: #17804b;
    --mint: #10b981;
    --ink: #17231c;
    --muted: #68756d;
    --line: #dce6df;
    --canvas: #eef4ef;
    --surface: #fff;
    --danger: #b42318;
    color-scheme: light;
}
[data-theme="dark"] {
    --ink: #e8f1eb;
    --muted: #a2b3a8;
    --line: #2d4437;
    --canvas: #111a14;
    --surface: #18251c;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.auth-body { min-height: 100vh; background: var(--canvas); color: var(--ink); font-family: "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 15px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 42%); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 42px clamp(24px, 7vw, 112px) 28px; background: var(--surface); }

.brand-mark { display: inline-flex; align-items: center; gap: 11px; width: fit-content; color: var(--forest); }
.brand-mark strong { display: block; font-size: 18px; letter-spacing: -.03em; }
.brand-mark small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.brand-logo { display: block; width: 36px; height: 36px; object-fit: contain; }

.auth-card { width: min(100%, 420px); margin: 72px 0 0; }
.aside-kicker, .eyebrow { display: block; color: var(--leaf); font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.auth-card h1 { margin: 12px 0 8px; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -.045em; }
.muted { margin: 0; color: var(--muted); line-height: 1.55; }

.auth-form { margin-top: 26px; }
.auth-form label { display: block; margin: 20px 0 8px; color: #34443a; font-size: 13px; font-weight: 650; }
.auth-form input { display: block; width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); outline: none; }
.auth-form input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(16, 185, 129, .16); }
.field-error { display: block; margin-top: 6px; color: var(--danger); font-size: 12px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 5px; cursor: pointer; font-size: 14px; font-weight: 700; }
.button.primary { width: 100%; margin-top: 26px; background: var(--leaf); color: #fff; }
.button.primary:hover { background: var(--forest); }
.button.primary:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.button.primary:disabled { cursor: progress; opacity: .75; }

.message { margin: 18px 0 0; padding: 12px 14px; border-left: 3px solid var(--danger); background: #fff2f0; color: var(--danger); font-size: 13px; }

.auth-footer { margin-top: auto; padding-top: 48px; color: var(--muted); font-size: 12px; }

.auth-aside { position: relative; overflow: hidden; padding: 15vh clamp(36px, 6vw, 100px); background: var(--forest); color: #e9f7ed; }
.auth-aside::after { content: ""; position: absolute; right: -180px; bottom: -140px; width: 420px; height: 420px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255, 255, 255, .04), 0 0 0 76px rgba(255, 255, 255, .03); pointer-events: none; }
.auth-aside .aside-kicker { color: #8ed5a1; }
.auth-aside h2 { max-width: 460px; margin: 22vh 0 20px; font-size: clamp(36px, 5vw, 64px); line-height: .98; letter-spacing: -.055em; }
.auth-aside p { max-width: 320px; margin: 0; color: #b6d7bf; line-height: 1.65; }

/* Tema escuro (mesma preferência do portal). */
[data-theme="dark"] .auth-form label { color: #c8d9cd; }
[data-theme="dark"] .auth-form input { background: #111a14; }
[data-theme="dark"] .brand-mark { color: var(--ink); }
[data-theme="dark"] .brand-logo { padding: 3px; border-radius: 8px; background: #e8f1eb; }
[data-theme="dark"] .message { background: #3a1d1a; color: #fbc5bd; border-left-color: #f0786a; }
[data-theme="dark"] .auth-aside { background: #0f3d22; }

@media (max-width: 760px) {
    .auth-layout { display: block; }
    .auth-panel { min-height: 100vh; padding: 26px 22px 20px; }
    .auth-card { margin: 56px auto 0; }
    .auth-footer { text-align: center; }
    .auth-aside { display: none; }
}
