.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 28% 20%, rgba(126, 87, 226, 0.26), transparent 34%),
    radial-gradient(circle at 78% 82%, rgba(216, 185, 121, 0.11), transparent 30%),
    rgba(5, 6, 11, 0.9);
  backdrop-filter: blur(18px);
}

.auth-gate[hidden] {
  display: none;
}

.auth-card {
  width: min(460px, 100%);
  padding: 34px;
  border-radius: 26px;
  text-align: center;
  background: rgba(15, 14, 26, 0.94);
}

.auth-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(168, 130, 255, 0.52);
  border-radius: 50%;
  color: #efe8ff;
  font: 700 32px Georgia, serif;
  box-shadow: inset 0 0 24px rgba(168, 130, 255, 0.12), 0 0 28px rgba(168, 130, 255, 0.14);
}

.auth-card h1 {
  margin: 0 0 12px;
  font-size: 30px;
}

.auth-copy {
  margin: 0 auto 24px;
  max-width: 360px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.google-auth-button,
.email-auth-button {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 150ms ease, opacity 150ms ease, filter 150ms ease;
}

.google-auth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  color: #242424;
}

.google-auth-button:disabled,
.email-auth-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.google-auth-button:not(:disabled):hover,
.email-auth-button:not(:disabled):hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.google-g {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #4285f4;
  font-weight: 800;
}

.auth-separator {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 18px;
  color: #777486;
  font-size: 10px;
  letter-spacing: 0.2em;
}

.auth-separator::before,
.auth-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.auth-tab {
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.auth-tab.active {
  color: var(--text);
  background: rgba(132, 88, 238, 0.2);
}

.auth-form {
  display: grid;
  gap: 14px;
  text-align: left;
}

.auth-form label span {
  display: block;
  margin-bottom: 7px;
  color: #c6c2d5;
  font-size: 12px;
}

.auth-form input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
}

.auth-form input:focus {
  border-color: rgba(168, 130, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(132, 88, 238, 0.12);
}

.email-auth-button {
  margin-top: 2px;
  color: white;
  background: linear-gradient(135deg, #8e63ef, #7549e6);
}

.auth-status {
  min-height: 36px;
  margin: 16px 0 0;
  color: #8f8b9f;
  font-size: 12px;
  line-height: 1.45;
}

.auth-status.error {
  color: var(--red);
}

.auth-status.success {
  color: var(--green);
}

.app-shell.auth-locked {
  filter: blur(8px) saturate(0.7);
  pointer-events: none;
  user-select: none;
}
