:root {
  --bg: #F2F4F7;
  --panel: #E9EDF3;
  --card: #ffffff;
  --ink: #0D1B3D;
  --muted: #6B7280;
  --faint: #9AA2B1;
  --green: #00C2A8;       /* verde-água Habix (cor primária) */
  --green-dark: #00A892;
  --blue: #4C7CFF;
  --purple: #8B5CF6;
  --line: rgba(13, 27, 61, 0.10);
  --danger: #E5484D;
  --radius: 16px;
}

* { box-sizing: border-box; }

/* Garante Poppins em tudo, inclusive controles de formulário (que por padrão
   usam a fonte do sistema e não herdam do body). */
body, input, select, button, textarea {
  font-family: 'Poppins', system-ui, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Poppins', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.auth-shell {
  width: 100%;
  max-width: 420px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 22px;
}
.brand-logo {
  height: 85px;
  width: auto;
  max-width: 100%;
  mix-blend-mode: multiply; /* remove o fundo branco da imagem sobre o cinza claro */
}
.brand .logo {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.brand .logo svg { width: 44px; height: 44px; }
.brand .name {
  font: 700 22px/1 'Poppins', sans-serif;
  letter-spacing: -0.01em;
}
.brand .tag {
  font: 500 12px/1.2 'Poppins', sans-serif;
  color: var(--muted);
  margin-top: 3px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 26px;
  box-shadow: 0 8px 30px rgba(42, 46, 42, 0.05);
}

.card h1 {
  font: 700 22px/1.2 'Poppins', sans-serif;
  margin: 0 0 4px;
}
.card .sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 22px;
}

.field { margin-bottom: 15px; }
.field label {
  display: block;
  font: 600 13px/1 'Poppins', sans-serif;
  margin-bottom: 7px;
  color: #4a4f47;
}
.field input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfaf7;
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, background .15s;
}
.field input:focus {
  border-color: var(--green);
  background: #fff;
}
.field input.invalid {
  border-color: var(--danger);
  background: #fdf3ee;
}
.field .msg {
  display: none;
  font-size: 12.5px;
  color: var(--danger);
  margin-top: 6px;
}
.field.has-error .msg { display: block; }

.btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font: 700 15px/1 'Poppins', sans-serif;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  margin-top: 6px;
  transition: background .15s;
}
.btn:hover { background: var(--green-dark); }
.btn:disabled { opacity: .6; cursor: default; }

.alert {
  display: none;
  background: #fdf3ee;
  border: 1px solid rgba(181, 101, 63, 0.3);
  color: #8a4a2c;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 13.5px;
  margin-bottom: 16px;
}
.alert.show { display: block; }

.switch {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
}
.switch a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}
.switch a:hover { text-decoration: underline; }
