.auth-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 60%), var(--bg-app);
}

.auth-card {
  width: min(420px, 100%);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-panel);
}

.auth-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.auth-brand h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.auth-brand p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auth-tab {
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-tab.active {
  border-color: var(--accent-primary);
  color: var(--text-main);
  background: rgba(59, 130, 246, 0.08);
}

.auth-status {
  font-size: 12px;
  color: var(--text-muted);
}

.auth-status.error {
  color: var(--accent-danger);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.auth-form.active {
  display: flex;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  width: 100%;
}

.password-wrapper input {
  padding-right: 40px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: var(--text-main);
}

.auth-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--text-main);
  text-decoration: none;
}