/* ==========================================================================
   maphrasquad-br — tela de conta (touch-friendly)
   Alvos de toque grandes, mobile-first, tema escuro violeta.
   ========================================================================== */
:root {
  --ink: #05040a;
  --panel: #0d0b13;
  --line: #2c2530;
  --amethyst: #7a4bc0;
  --amethyst-bright: #b18cff;
  --violet-soft: #ddc7ff;
  --silver: #cfccd6;
  --silver-dim: #8a8698;
  --bone: #efeaf6;
  --teal: #46d3cb;
  --danger: #ff5c7a;
  --font-head: "Cinzel", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(900px 520px at 12% 0%, rgba(122, 75, 192, .22), transparent 62%),
    radial-gradient(700px 480px at 92% 90%, rgba(23, 99, 94, .16), transparent 66%),
    var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--amethyst-bright); }

.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
}
.auth__card {
  width: 100%;
  max-width: 420px;
  padding: 28px 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(28, 20, 45, .9), rgba(10, 8, 16, .94));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.auth__brand {
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: .06em;
  text-align: center;
  margin: 0 0 4px;
  color: var(--bone);
}
.auth__sub { text-align: center; color: var(--silver-dim); font-size: 13.5px; margin: 0 0 22px; }
.auth__error {
  display: none;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 92, 122, .45);
  background: rgba(255, 92, 122, .12);
  color: #ffc3ce;
  font-size: 14px;
}
.auth__error.is-on { display: block; }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--silver-dim);
}
.field input, .field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(18, 14, 29, .9);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus {
  border-color: rgba(177, 140, 255, .7);
  box-shadow: 0 0 0 3px rgba(150, 110, 235, .2);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #9060e0, #2a1247);
  color: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(150, 110, 235, .35);
  transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--silver); box-shadow: none; }
.btn--small { width: auto; min-height: 44px; padding: 8px 14px; font-size: 12px; letter-spacing: .1em; }
.btn--row { display: flex; gap: 10px; }
.btn--row .btn { flex: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(18, 14, 29, .8);
  color: var(--silver-dim);
  font-size: 13px;
  letter-spacing: .08em;
  cursor: pointer;
}
.chip.is-on {
  background: linear-gradient(180deg, #9060e0, #2a1247);
  border-color: rgba(177, 140, 255, .5);
  color: #fff;
}

.muted { color: var(--silver-dim); font-size: 13px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  z-index: 60;
  max-width: 90vw;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(28, 20, 45, .97);
  border: 1px solid rgba(177, 140, 255, .4);
  color: var(--bone);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
