/* ============================================================
   Telas de autenticação (login / cadastro).
   Reaproveita os tokens e botões de landing.css (linkado antes).
   ============================================================ */

body.auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Barra superior mínima: logo + idioma */
.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 40px);
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.auth-top__brand img { height: 40px; width: auto; }

/* Área central */
.auth-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 32px 18px 64px;
  position: relative;
}
.auth-wrap::before {
  content: "";
  position: absolute;
  top: -40px; left: 50%; transform: translateX(-50%);
  width: 560px; height: 360px;
  background: radial-gradient(circle at 50% 30%, var(--aqua-glow), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  padding: 38px clamp(22px, 4vw, 38px) 32px;
  background: linear-gradient(180deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.auth-card__logo {
  display: block;
  width: 300px; max-width: 82%; height: auto;
  /* margem negativa embaixo para compensar a área transparente da PNG */
  margin: -6px auto -14px;
}
.auth-card .eyebrow { display: flex; justify-content: center; margin-bottom: 10px; }
.auth-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: -0.015em;
  text-align: center;
  margin: 0 0 6px;
}
.auth-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 26px;
}

/* Campos */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  font-family: var(--body);
  font-size: 0.98rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(37, 169, 224, 0.65);
  background: rgba(37, 169, 224, 0.06);
}
.field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  min-height: 130px;
  resize: vertical;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  font-family: var(--body);
  font-size: 0.98rem;
  line-height: 1.5;
}
/* Honeypot anti-spam: escondido de humanos */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.auth-card--wide { max-width: 540px; }

/* Checkboxes (termos + marketing) */
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}
.check input {
  margin-top: 2px;
  width: 17px; height: 17px;
  accent-color: var(--aqua);
  flex-shrink: 0;
  cursor: pointer;
}
.check a { color: var(--aqua-bright); text-decoration: underline; text-underline-offset: 2px; }

/* Botão largura total + extras */
.btn--block { width: 100%; margin-top: 6px; }

.auth-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 16px;
}
.auth-row a { font-size: 0.85rem; color: var(--aqua-bright); }

.auth-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--faint);
  margin: 14px 0 0;
}
.auth-alt {
  text-align: center;
  margin: 22px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.auth-alt a { color: var(--aqua-bright); font-weight: 600; }

/* Mensagem inline (validação / status) */
.auth-msg {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 0.88rem;
  border: 1px solid transparent;
}
.auth-msg[hidden] { display: none; }
.auth-msg.is-error { background: rgba(229, 72, 77, 0.1); border-color: rgba(229, 72, 77, 0.4); color: #ffb3b5; }
.auth-msg.is-info { background: rgba(37, 169, 224, 0.1); border-color: rgba(37, 169, 224, 0.4); color: #bfe6f7; }

/* Rodapé mínimo */
.auth-foot {
  text-align: center;
  padding: 22px 18px 32px;
  font-size: 0.82rem;
  color: var(--faint);
}
.auth-foot a { color: var(--muted); }
.auth-foot a:hover { color: var(--text); }
