/* ── Auth Gate — full-screen login for clientes ── */

.auth-gate {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-deep);          /* solid dark — covers sidebar + main */
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.auth-gate.visible {
  opacity: 1; pointer-events: all;
}

/* ── Background accent ── */
.auth-gate::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 600px 400px at 30% 40%, rgba(200,85,255,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 75% 70%, rgba(154,63,196,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.auth-card {
  position: relative; z-index: 1;
  width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 40px 36px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(200,85,255,0.08);
}

/* ── Logo ── */
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo-mark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  letter-spacing: 5px;
  background: linear-gradient(135deg, var(--neon-dim), var(--neon));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}
.auth-logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 5px;
}

/* ── Tabs ── */
.auth-tabs {
  display: flex;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.auth-tab.active {
  background: var(--bg-card-h);
  color: var(--text);
}
.auth-tab:hover:not(.active) { color: var(--text); }

/* ── Form ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.auth-field input {
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s;
}
.auth-field input::placeholder { color: var(--text-muted); opacity: 0.6; }
.auth-field input:focus { border-color: var(--neon); }

/* ── Forgot password link ── */
.auth-forgot {
  font-size: 12px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-align: right;
  padding: 0;
  margin-top: -8px;
  font-family: 'Outfit', sans-serif;
  transition: color 0.18s;
  align-self: flex-end;
}
.auth-forgot:hover { color: var(--neon); }

/* ── Error / success message ── */
.auth-error {
  font-size: 12px;
  color: var(--red);
  min-height: 16px;
  line-height: 1.4;
  margin-top: -4px;
}
.auth-error.success { color: var(--green); }

/* ── Submit button ── */
.auth-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--neon-dim), var(--neon));
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(200,85,255,0.35);
  transition: all 0.2s;
  margin-top: 4px;
}
.auth-btn:hover {
  box-shadow: 0 6px 28px rgba(200,85,255,0.5);
  transform: translateY(-1px);
}
.auth-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ── Forgot-password sub-form (shown in place of main form) ── */
#form-forgot { display: none; flex-direction: column; gap: 16px; }
.auth-back-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-family: 'Outfit', sans-serif;
  font-size: 12px; text-align: left; padding: 0;
  transition: color 0.18s;
}
.auth-back-btn:hover { color: var(--text); }
