/* Tela de login em tela cheia (só aparece quando não há sessão).
   O fundo cobre a janela inteira; o texto fica à esquerda e o cartão à direita. */

.auth {
  position: relative;
  min-height: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: 48px clamp(24px, 6vw, 96px);
  overflow: hidden;
  color: #eaf3fb;
  background:
    radial-gradient(900px 560px at 0% 0%, #2a6fb8 0%, transparent 60%),
    radial-gradient(800px 520px at 100% 100%, #0f7a6b 0%, transparent 58%),
    linear-gradient(160deg, #0e2540, #07142a);
}

/* ----- camada decorativa (cobre a tela toda) ----- */

.auth-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.auth-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ----- texto de destaque ----- */

.auth-art-text {
  position: relative;
  z-index: 1;
  max-width: 560px;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .72;
}
.auth-art-text h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 700;
  text-wrap: balance;
}
.auth-art-text > p:last-child {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  opacity: .8;
  max-width: 44ch;
}

.pin circle:first-child { filter: drop-shadow(0 0 6px currentColor); }
.pin circle:last-child {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.6s ease-out infinite;
}
.pin-b circle:last-child { animation-delay: .9s; }
.pin-c circle:last-child { animation-delay: 1.8s; }
@keyframes pulse {
  0% { transform: scale(.6); opacity: .9; }
  100% { transform: scale(2.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pin circle:last-child { animation: none; }
}

/* ----- cartão de login ----- */

.auth-panel {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: stretch;
}
.auth-card {
  width: 100%;
  display: grid;
  gap: 16px;
  padding: 40px 36px 34px;
  border-radius: 18px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .38);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
}
.auth-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #2b7bd0, #1e5fa8);
  box-shadow: 0 6px 16px rgba(30, 95, 168, .35);
}
.auth-card h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.02em;
  color: var(--text);
}
.auth-sub {
  margin: -6px 0 6px;
  color: var(--muted);
  font-size: 14px;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: var(--muted); opacity: .7; }
.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
}
.pw { position: relative; display: block; }
.pw input { padding-right: 84px; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pw-toggle:hover { background: color-mix(in srgb, var(--brand) 12%, transparent); }

.auth-card .error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--old) 12%, transparent);
  color: var(--old);
  font-size: 14px;
}

.auth-submit {
  height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #2b7bd0, #1e5fa8);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(30, 95, 168, .35);
  transition: transform .05s, opacity .15s, filter .15s;
}
.auth-submit:hover { filter: brightness(1.06); }
.auth-submit:active { transform: translateY(1px); }
.auth-submit:disabled { opacity: .7; cursor: progress; }
.auth-submit:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); outline-offset: 2px; }

.auth-foot {
  margin: 4px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ----- celular e tablet: texto em cima, cartão embaixo ----- */

@media (max-width: 860px) {
  .auth {
    height: auto;
    min-height: 100%;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 28px;
    padding: 36px 16px 44px;
  }
  .auth-art-text h1 { font-size: 32px; margin-bottom: 12px; }
  .auth-art-text > p:last-child { font-size: 15px; }
  .auth-card { padding: 30px 22px 26px; }
}
