/* Painel — login (layout investigador/dancococ, tema Carvão Campeão) */
:root {
  --auth-bg: #f0e8df;
  --auth-surface: #ffffff;
  --auth-text: #120908;
  --auth-muted: #6e6258;
  --auth-muted-2: #9a8b7e;
  --auth-line: #e2d6cc;
  --auth-accent: #c8281e;
  --auth-accent-2: #5c2a22;
  --auth-accent-bright: #c24e41;
  --auth-accent-soft: #f5e6e0;
  --auth-green: #3d6b52;
  --auth-danger: #b91c1c;
  --auth-danger-bg: #fef2f2;
  --auth-font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --auth-display: "Barlow Condensed", Impact, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--auth-font);
  color: var(--auth-text);
  background: var(--auth-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--auth-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.login-root {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #ebe3da;
  color: var(--auth-text);
}

.login-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(232, 67, 42, 0.2), transparent 34%),
    radial-gradient(circle at bottom right, rgba(61, 107, 82, 0.14), transparent 32%),
    linear-gradient(180deg, #f5efe8 0%, #ebe4db 100%);
  pointer-events: none;
}

.login-grid-panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: 54%;
  border-right: 1px solid rgba(18, 9, 8, 0.06);
  background-image:
    linear-gradient(rgba(18, 9, 8, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 9, 8, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.login-shell {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  min-height: 100vh;
  max-width: 80rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.login-left {
  display: flex;
  flex: 1;
  align-items: center;
  padding: 3.5rem 3.5rem;
}

.login-left-inner {
  width: 100%;
  max-width: 42rem;
}

.secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 67, 42, 0.35);
  background: rgba(255, 255, 255, 0.75);
  padding: 0.25rem 0.75rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--auth-accent-2);
  box-shadow: 0 1px 2px rgba(18, 9, 8, 0.06);
  backdrop-filter: blur(8px);
}
.secure-pill svg { width: 14px; height: 14px; color: var(--auth-accent); }

.brand-block { margin-top: 2rem; max-width: 36rem; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: #120908;
  box-shadow: 0 20px 50px rgba(18, 9, 8, 0.22);
  overflow: hidden;
  padding: 6px;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-mark.brand-mark--teams {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.brand-mark--teams {
  position: relative;
}
.brand-mark--teams .brand-team {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.78);
  transition: opacity 0.5s ease, transform 0.5s ease;
  filter: drop-shadow(0 4px 10px rgba(18, 9, 8, 0.12));
}
.brand-mark--teams .brand-team.active {
  opacity: 1;
  transform: scale(1);
}

.brand-name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--auth-muted);
}
.brand-sub {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  color: var(--auth-muted-2);
}

.headline {
  margin: 2rem 0 0;
  font-family: var(--auth-display);
  font-size: clamp(2.25rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #120908;
}
.headline span {
  display: block;
  background: linear-gradient(135deg, var(--auth-accent-bright) 0%, #120908 72%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #4a4038;
}

.feat-row {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feat {
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 214, 204, 0.95);
  background: #fff;
  padding: 1.15rem 1.1rem 1.2rem;
  box-shadow: 0 10px 30px rgba(18, 9, 8, 0.07);
}

.feat-ico {
  display: flex;
  width: 2.65rem;
  height: 2.65rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--auth-accent-soft);
  color: var(--auth-accent);
}
.feat-ico svg { width: 1.2rem; height: 1.2rem; }

.feat-title {
  margin: 0.95rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--auth-text);
}
.feat-text {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--auth-muted);
}

.kpi-row {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-top: 1px solid rgba(226, 214, 204, 0.9);
  padding-top: 1.5rem;
}
.kpi { min-width: 7rem; }
.kpi-n {
  margin: 0;
  font-family: var(--auth-display);
  font-size: 1.875rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #120908;
}
.kpi-l {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--auth-muted);
}

.login-right {
  display: flex;
  width: 42%;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 3rem;
}

.auth-card {
  width: 100%;
  max-width: 28rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.94);
  padding: 2rem;
  box-shadow: 0 32px 90px rgba(92, 42, 34, 0.18);
  backdrop-filter: blur(10px);
}

.auth-head { margin-bottom: 2rem; }
.auth-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--auth-accent);
}
.auth-title {
  margin: 0.75rem 0 0;
  font-family: var(--auth-display);
  font-size: 1.875rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #120908;
}
.auth-sub {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--auth-muted);
}

.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }

.alert {
  padding: 0.75rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.alert.err {
  background: var(--auth-danger-bg);
  color: var(--auth-danger);
  border: 1px solid #fecaca;
  text-align: center;
}

.form-group label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--auth-muted);
}

.form-group input {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--auth-line);
  background: #fff;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  color: var(--auth-text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: none;
}
.form-group input::placeholder { color: #b89a88; }
.form-group input:focus {
  border-color: var(--auth-accent-bright);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(194, 78, 65, 0.12);
}
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--auth-text);
}

.pass-box { position: relative; }
.pass-box input { padding-right: 3rem; }
.pass-box button {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--auth-muted-2);
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
}
.pass-box button:hover { color: var(--auth-text); }
.pass-box svg { width: 1rem; height: 1rem; }

.btn-enter {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--auth-accent-bright) 0%, var(--auth-accent-2) 100%);
  box-shadow: 0 20px 40px rgba(232, 67, 42, 0.28);
  transition: transform .15s;
}
.btn-enter:hover { transform: scale(1.01); }
.btn-enter svg { width: 1rem; height: 1rem; }

.auth-note {
  border-radius: 1rem;
  background: #faf7f4;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--auth-muted);
}

.auth-foot-link {
  margin: 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--auth-muted);
}
.auth-foot-link a {
  color: var(--auth-accent);
  font-weight: 700;
  text-decoration: none;
}
.auth-foot-link a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  .login-grid-panel { width: 100%; border-right: 0; opacity: 0.5; }
  .login-shell {
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0 3rem;
  }
  .login-left {
    padding: 2rem 1.5rem 0;
    flex: none;
  }
  .feat-row { grid-template-columns: 1fr; }
  .kpi-row { justify-content: center; text-align: center; }
  .login-right {
    width: 100%;
    padding: 1.5rem 1.25rem 0;
  }
}

@media (max-width: 520px) {
  .headline { font-size: 2rem; }
  .login-left { padding-top: 1.25rem; }
}

/* Celular: o formulário vem logo depois do título (sem os 3 cartões de destaque) */
@media (max-width: 720px) {
  .feat-row { display: none; }
  .login-shell { justify-content: flex-start; padding-top: 1rem; }
  .login-right { padding-top: 1rem; }
  .auth-foot-link a { display: inline-block; padding: 10px 4px; }
}
