/* ══════════════════════════════════════════════
   auth.css — Tela de login e cadastro
══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0a0f1e;
  --panel:    #111827;
  --border:   rgba(255,255,255,0.08);
  --accent:   #4ade80;
  --accent2:  #22d3ee;
  --danger:   #f87171;
  --text:     #f1f5f9;
  --muted:    #64748b;
  --input-bg: #1e293b;
  --radius:   14px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(74,222,128,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(34,211,238,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.wrapper {
  position: relative; z-index: 1;
  width: 100%; max-width: 440px;
  padding: 24px;
  animation: fadeUp .5s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Logo ────────────────────────────────── */
.logo { text-align: center; margin-bottom: 32px; }
.logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 16px; margin-bottom: 14px;
  box-shadow: 0 0 32px rgba(74,222,128,0.3);
}
.logo h1 { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.logo span { color: var(--accent); }
.logo p { color: var(--muted); font-size: .875rem; margin-top: 4px; }

/* ── Card ────────────────────────────────── */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}

/* ── Abas login/cadastro ─────────────────── */
.tabs {
  display: flex; gap: 8px;
  background: var(--input-bg);
  border-radius: 10px; padding: 4px;
  margin-bottom: 24px;
}
.tab {
  flex: 1; padding: 8px; text-align: center;
  border-radius: 8px; font-size: .875rem; font-weight: 500;
  cursor: pointer; text-decoration: none; color: var(--muted);
  transition: all .2s;
}
.tab.active { background: var(--accent); color: #0a0f1e; font-weight: 700; }

/* ── Formulário ──────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: .78rem; font-weight: 600;
  color: var(--muted); margin-bottom: 6px;
  letter-spacing: .05em; text-transform: uppercase;
}
.input-wrap { position: relative; }
.input-wrap svg {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted); width: 16px; height: 16px; pointer-events: none;
}
input[type=text],
input[type=email],
input[type=password] {
  width: 100%; padding: 12px 14px 12px 42px;
  background: var(--input-bg); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 1rem; font-family: inherit;
  transition: border-color .2s; outline: none;
  -webkit-appearance: none;
}
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,222,128,0.15);
}

/* ── Honeypot ────────────────────────────── */
.honeypot {
  display: none !important;
  position: absolute; left: -9999px;
}

/* ── Botão ───────────────────────────────── */
.btn {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0a0f1e; font-family: 'Syne', sans-serif;
  font-size: 1rem; font-weight: 700; border: none;
  border-radius: var(--radius); cursor: pointer;
  letter-spacing: .03em; transition: opacity .2s, transform .1s; margin-top: 8px;
}
.btn:hover  { opacity: .9; }
.btn:active { transform: scale(.98); }

/* ── Alertas ─────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: 10px;
  font-size: .875rem; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.alert-error   { background: rgba(248,113,113,0.15); border: 1px solid rgba(248,113,113,0.3); color: var(--danger); }
.alert-success { background: rgba(74,222,128,0.12);  border: 1px solid rgba(74,222,128,0.3);  color: var(--accent); }

/* ── Força da senha ──────────────────────── */
.pwd-hint {
  font-size: .75rem; color: var(--muted); margin-top: 5px;
  transition: color .3s;
}
.pwd-strength {
  height: 4px; border-radius: 99px;
  margin-top: 6px; background: var(--input-bg); overflow: hidden;
}
.pwd-strength-bar {
  height: 100%; border-radius: 99px;
  width: 0; transition: width .3s, background .3s;
}
