/* Auth pages + nav auth controls */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  flex-shrink: 0;
}

.nav-auth a,
.nav-auth button {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted, #a89bc0);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
}

.nav-auth a:hover,
.nav-auth button:hover {
  color: var(--text, #f4f0ff);
}

.nav-auth .btn-nav-signup,
.nav-auth .btn-nav-account {
  color: var(--text, #f4f0ff);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  padding: 7px 12px;
}

.nav-auth .btn-nav-signup:hover,
.nav-auth .btn-nav-account:hover {
  border-color: rgba(196, 181, 253, 0.45);
  background: rgba(139, 92, 246, 0.18);
}

.auth-shell {
  width: min(440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 64px;
}

.auth-card {
  margin-top: 12px;
  padding: 28px 24px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(139, 92, 246, 0.22), transparent 70%),
    rgba(255, 255, 255, 0.04);
}

.auth-card h1 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #f4f0ff 10%, #c4b5fd 55%, #8b5cf6 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  margin-top: 20px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 4, 16, 0.6);
}

.auth-tabs button {
  flex: 1;
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted, #a89bc0);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.auth-tabs button.active {
  background: rgba(139, 92, 246, 0.25);
  color: var(--text, #f4f0ff);
  box-shadow: inset 0 0 0 1px rgba(196, 181, 253, 0.35);
}

.auth-card .auth-lead {
  margin: 8px 0 0;
  color: var(--muted, #a89bc0);
  font-size: 0.95rem;
  line-height: 1.5;
}

.auth-form {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 650;
  color: #d6ccef;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 4, 16, 0.72);
  color: var(--text, #f4f0ff);
  font: inherit;
  font-size: 0.95rem;
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(196, 181, 253, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.auth-form .btn-go {
  width: 100%;
  justify-content: center;
  min-height: 50px;
  margin-top: 4px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted, #a89bc0);
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.btn-google {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text, #f4f0ff);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.btn-google:hover {
  border-color: rgba(196, 181, 253, 0.45);
  background: rgba(255, 255, 255, 0.09);
}

.btn-google:disabled,
.auth-form .btn-go:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-status {
  margin: 12px 0 0;
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--muted, #a89bc0);
}

.auth-status.error { color: var(--danger, #fb7185); }
.auth-status.ok { color: var(--ok, #4ade80); }

.auth-switch {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted, #a89bc0);
  font-size: 0.9rem;
}

.auth-switch a {
  color: #c4b5fd;
  font-weight: 650;
}

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

.account-meta {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.92rem;
  color: var(--muted, #a89bc0);
  line-height: 1.55;
}

.account-meta strong {
  display: block;
  color: var(--text, #f4f0ff);
  margin-bottom: 4px;
}

@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
  }
  .nav-auth {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
    margin-top: -8px;
  }
}
