/* ============================================================
   Sistema de Contratos — autenticação (cara de sistema empresarial)
   ============================================================ */
:root {
  --canvas:     #e9ecf0;
  --surface:    #ffffff;
  --surface-2:  #f4f6f8;
  --ink:        #1b2330;
  --ink-soft:   #525e6e;
  --ink-faint:  #8a94a3;
  --line:       #e4e8ed;
  --line-strong:#d2d9e1;
  --bar:        #1d2632;
  --seal:       #c24a2b;
  --seal-deep:  #a23c20;
  --seal-soft:  #fbe7e0;
  --green:      #1f7a54;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); -webkit-font-smoothing: antialiased;
  background: var(--canvas);
}

.auth {
  min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto;
}

/* faixa superior corporativa */
.auth__bar {
  height: 54px; background: var(--bar); display: flex; align-items: center;
  padding: 0 24px; gap: 11px; color: #fff;
}
.auth__bar .mark {
  width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--seal), var(--seal-deep)); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 2px 6px rgba(162,60,32,.4);
}
.auth__bar b { font-size: 15px; font-weight: 600; }
.auth__bar small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #6b7889; display: block; }

.auth__center { display: grid; place-items: center; padding: 32px 18px; }

.card {
  width: 100%; max-width: 392px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(27,35,48,.06), 0 18px 50px rgba(27,35,48,.12);
  overflow: hidden;
}
.card__top { padding: 26px 30px 0; }
.card__eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--seal); font-weight: 600; }
.card__top h1 { font-size: 22px; font-weight: 650; letter-spacing: -.01em; margin: 8px 0 4px; }
.card__top p { color: var(--ink-soft); font-size: 13.5px; margin: 0; }
.card__body { padding: 22px 30px 28px; }

.fld { margin-bottom: 15px; }
.fld label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.fld input {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 14px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px;
  transition: border-color .12s, box-shadow .12s;
}
.fld input::placeholder { color: var(--ink-faint); }
.fld input:focus { outline: none; border-color: var(--seal); box-shadow: 0 0 0 3px var(--seal-soft); }

.submit {
  width: 100%; height: 44px; margin-top: 6px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 14px; color: #fff;
  background: var(--seal); border: 0; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  transition: background .12s, transform .05s;
}
.submit:hover { background: var(--seal-deep); }
.submit:active { transform: translateY(1px); }
.submit svg { width: 17px; height: 17px; }

.alert {
  display: flex; align-items: center; gap: 9px; padding: 10px 13px; border-radius: 6px;
  font-size: 13px; font-weight: 500; margin-bottom: 16px;
  background: var(--seal-soft); color: var(--seal-deep); border: 1px solid #efc8bb;
}
.alert.info { background: #e2f3ea; color: var(--green); border-color: #bfe1cf; }
.alert svg { width: 17px; height: 17px; flex: none; }

.hint {
  margin: 18px 30px 0; padding: 11px 13px; border-radius: 6px; text-align: center;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; color: var(--ink-soft);
}
.hint b { color: var(--ink); }
.hint .k { font-family: "IBM Plex Mono", ui-monospace, monospace; }

.auth__foot { text-align: center; padding: 20px; color: var(--ink-faint); font-size: 12px; }

@media (max-width: 440px) { .card__top, .card__body { padding-left: 22px; padding-right: 22px; } .hint { margin-left: 22px; margin-right: 22px; } }
