@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/*
 * login.css — Tela de acesso do Neurax CRM (visual clean)
 * A cor de marca sai de --brand / --brand-strong: trocar aqui refaz o white-label.
 */

:root {
  --brand:        #10a37f;
  --brand-strong: #0b8467;
  --brand-deep:   #0a3b31;
  --brand-soft:   #e7f6f1;

  --ink:      #17202e;
  --muted:    #6a7383;
  --line:     #e5e7eb;
  --line-strong: #d7dae0;
  --bg:       #f6f7f9;
  --panel:    #ffffff;
  --panel-soft: #f4f5f7;
  --danger:   #dc2626;
  --shadow:   0 1px 2px rgba(16, 24, 40, 0.04), 0 20px 48px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--bg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.login-shell {
  width: min(1060px, calc(100vw - 40px));
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

/* ── Painel de marca ── */

.hero {
  position: relative;
  padding: 56px 52px;
  background: var(--brand-deep);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 30%;
  height: 320px;
  border-radius: 999px;
  background: var(--brand-glow, rgba(16, 163, 127, 0.22));
  filter: blur(60px);
  pointer-events: none;
}

.brand-line {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}

.brand-line strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.2px;
}

.brand-line small {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.eyebrow {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 10.5px;
  font-weight: 700;
}

h1, h2, p { margin: 0; }

h1 {
  position: relative;
  z-index: 1;
  max-width: 520px;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1.2px;
}

.hero > p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
  line-height: 1.6;
}

.preview-card {
  position: relative;
  z-index: 1;
  width: min(340px, 100%);
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
}

.preview-card span,
.preview-card small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12.5px;
  font-weight: 600;
}

.preview-card strong {
  display: block;
  margin: 8px 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1px;
}

/* ── Formulário ── */

.login-card {
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--panel);
}

.login-badge {
  width: max-content;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  padding: 5px 11px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.login-card h2 {
  margin-top: 18px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.8px;
}

.login-card > p {
  color: var(--muted);
  margin: 6px 0 28px;
  font-size: 14px;
}

form { display: grid; gap: 16px; }

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
}

input {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  background: var(--panel);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

button {
  margin-top: 10px;
  border: 0;
  border-radius: 10px;
  padding: 13px;
  background: var(--brand);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: none;
  transition: background 140ms ease;
}

button:hover { background: var(--brand-strong); }

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.message {
  min-height: 22px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 880px) {
  body { place-items: stretch; }

  .login-shell {
    width: 100%;
    min-height: 100vh;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
  }

  .hero { padding: 40px 28px; }
  .login-card { padding: 36px 28px; }
}
