/* ========================================
   AUTH — Tela de login/cadastro unificada
   ======================================== */

body.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

/* Decorações de fundo */
body.auth-page::before {
  content: '';
  position: fixed;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,154,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
body.auth-page::after {
  content: '';
  position: fixed;
  bottom: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,229,176,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* CARD */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 1px var(--border), 0 24px 64px rgba(0,0,0,.5);
}

/* BRAND */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.auth-brand-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(26,154,255,0.15), rgba(0,229,176,0.1));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.auth-brand-name {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.auth-brand-name span { color: var(--accent); }
.auth-brand-sub {
  font-size: 0.78rem;
  color: var(--text2);
  margin-top: 3px;
}

/* TABS */
.auth-tabs {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 28px;
  gap: 3px;
}
.auth-tab {
  flex: 1;
  padding: 9px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
}
.auth-tab:hover:not(.active) { color: var(--text); }
.auth-tab.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  border: 1px solid var(--border);
}

/* FORM */
.form-group { margin-bottom: 16px; }

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  padding: 11px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
input::placeholder { color: var(--text3); }
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,154,255,0.1);
}

/* Toggle senha */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap input { padding-right: 42px; }
.toggle-senha {
  position: absolute; right: 10px;
  background: none; border: none;
  color: var(--text2); cursor: pointer;
  display: flex; align-items: center;
  padding: 4px; transition: color 0.15s;
}
.toggle-senha:hover { color: var(--text); }

/* MSG */
.msg {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.82rem;
  margin-bottom: 16px;
  display: none;
  font-weight: 500;
}
.msg.error {
  background: rgba(255,77,106,0.1);
  border: 1px solid rgba(255,77,106,0.25);
  color: var(--danger);
}
.msg.success {
  background: rgba(0,229,176,0.1);
  border: 1px solid rgba(0,229,176,0.25);
  color: var(--accent2);
}

/* BOTÕES */
.btn-auth {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 6px;
}
.btn-auth:hover { transform: translateY(-1px); }
.btn-auth:active { transform: none; }

.btn-login {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 16px rgba(26,154,255,0.25);
}
.btn-login:hover { background: #0080e0; box-shadow: 0 6px 20px rgba(26,154,255,0.35); }

.btn-cadastro {
  background: var(--accent2);
  color: #062a1e;
  box-shadow: 0 4px 16px rgba(0,229,176,0.2);
}
.btn-cadastro:hover { background: #00c090; }

/* FOOTER */
.site-footer {
  font-size: 0.75rem;
  color: var(--text3);
  font-family: 'Space Mono', monospace;
  text-align: center;
  position: relative;
  z-index: 1;
}
.site-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
}
