/* Auth pages — estilos autocontidos (login / cadastro) */
:root {
  --auth-bg: #14181e;
  --auth-surface: #1c2229;
  --auth-surface-2: #252c35;
  --auth-border: #323a45;
  --auth-text: #f5f7fa;
  --auth-muted: #8b97a8;
  --auth-cyan: #2bc1d8;
  --auth-cyan-dark: #1aa8c0;
  --auth-danger: #f87171;
  --auth-radius: 18px;
  --auth-font: "DM Sans", system-ui, sans-serif;
  --auth-display: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body.auth-body {
  margin: 0;
  min-height: 100%;
}

body.auth-body {
  font-family: var(--auth-font);
  background: var(--auth-bg);
  color: var(--auth-text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  position: relative;
  overflow-x: hidden;
}

body.auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% -10%, rgba(43, 193, 216, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(26, 168, 192, 0.1), transparent 50%);
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}

.auth-card {
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.auth-logo {
  display: block;
  width: min(220px, 85%);
  height: auto;
  margin: 0 auto 1.35rem;
  border-radius: 12px;
}

.auth-card h1 {
  font-family: var(--auth-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.03em;
  margin: 0;
}

.auth-sub {
  text-align: center;
  color: var(--auth-muted);
  font-size: 0.9rem;
  margin: 0.4rem 0 1.35rem;
}

.auth-alert {
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.auth-alert.error {
  background: rgba(248, 113, 113, 0.12);
  color: var(--auth-danger);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.auth-alert.ok {
  background: rgba(43, 193, 216, 0.12);
  color: var(--auth-cyan);
  border: 1px solid rgba(43, 193, 216, 0.3);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--auth-muted);
  font-weight: 500;
}

.auth-form input {
  width: 100%;
  background: var(--auth-surface-2);
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  color: var(--auth-text);
  font: inherit;
  font-size: 1rem;
  padding: 0.8rem 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-form input:focus {
  border-color: var(--auth-cyan);
  box-shadow: 0 0 0 3px rgba(43, 193, 216, 0.18);
}

.auth-form input::placeholder { color: #6b7685; }

.auth-submit {
  width: 100%;
  margin-top: 0.35rem;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  color: #0b1218;
  background: linear-gradient(135deg, var(--auth-cyan-dark), var(--auth-cyan));
  box-shadow: 0 4px 18px rgba(43, 193, 216, 0.28);
  transition: transform 0.12s, filter 0.12s;
}

.auth-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.auth-submit:active { transform: none; }

.auth-footer {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--auth-muted);
  font-size: 0.88rem;
}

.auth-footer a {
  color: var(--auth-cyan);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover { text-decoration: underline; }

.auth-hint {
  margin: -0.35rem 0 0.35rem;
  font-size: 0.78rem;
  color: var(--auth-muted);
  line-height: 1.4;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .auth-card { padding: 1.35rem 1.1rem 1.2rem; }
  .auth-row { grid-template-columns: 1fr; }
  body.auth-body { padding: 1rem; align-items: flex-start; padding-top: 2rem; }
}
