/* Creators Access — auth gate */
.auth-gate {
  display: none;
  min-height: 100vh;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.auth-gate.is-visible {
  display: flex;
}

.auth-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.auth-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.auth-gate h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--cu-muted);
  margin-bottom: 28px;
  text-align: center;
  max-width: 320px;
  line-height: 1.5;
}

.auth-box {
  background: var(--cu-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px 28px 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .auth-box { box-shadow: none; }

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 22px;
}

.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--cu-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--cu-surface);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-panel { display: none; }
.auth-panel.active { display: block; }

.auth-field { margin-bottom: 16px; }

.auth-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cu-muted-2);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color-dark);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg-secondary);
  color: var(--text-primary);
  outline: none;
}

.auth-field input:focus {
  border-color: var(--text-primary);
  background: var(--cu-surface);
}

.auth-btn {
  width: 100%;
  padding: 13px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
}

.auth-btn:hover { opacity: 0.88; }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-msg {
  font-size: 0.85rem;
  margin-top: 14px;
  text-align: center;
  min-height: 20px;
  color: var(--cu-muted-2);
}

.auth-msg.error { color: #c00; }
.auth-msg.success { color: #16a34a; }

.auth-hint {
  font-size: 0.78rem;
  color: var(--cu-muted);
  margin-top: 10px;
  text-align: center;
  line-height: 1.4;
}

.auth-footer {
  margin-top: 32px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: center;
}

.auth-theme-wrap {
  position: fixed;
  top: 16px;
  right: 16px;
}

body.is-authed .auth-gate {
  display: none !important;
}
