/* === AUTH PAGE LAYOUT === */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000;
  position: relative;
  overflow: hidden;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  position: relative;
  z-index: 1;
}

.auth-bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(192,192,192,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* === AUTH CARD === */
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #0a0a0a;
  border: 1px solid rgba(192,192,192,0.12);
  border-radius: 20px;
  padding: 48px 40px;
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.02);
}

@media (max-width: 480px) {
  .auth-card {
    padding: 36px 24px;
    border-radius: 16px;
  }
}

/* === AUTH LOGO === */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.auth-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #888 0%, #e0e0e0 50%, #a0a0a0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

.auth-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: -0.3px;
}

.auth-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
}

/* === TABS === */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  gap: 0;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s ease;
}

.auth-tab:hover {
  color: var(--text-secondary);
}

.auth-tab.active {
  color: var(--accent-bright);
  border-bottom-color: var(--accent);
}

/* === MESSAGE === */
.auth-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.auth-message-error {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #f87171;
}

.auth-message-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
}

/* === FORM === */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form.hidden {
  display: none;
}

.auth-form-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 4px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.form-label-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  transition: color 0.2s;
}

.form-label-link:hover {
  color: var(--accent);
}

.form-optional {
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.form-input {
  background: #111;
  border: 1px solid rgba(192,192,192,0.12);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: #444;
}

.form-input:focus {
  border-color: rgba(192,192,192,0.35);
  box-shadow: 0 0 0 3px rgba(192,192,192,0.06);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* === SUBMIT BUTTON === */
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #888 0%, #e0e0e0 40%, #c0c0c0 60%, #a0a0a0 100%);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.2px;
  text-decoration: none;
  margin-top: 4px;
}

.auth-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-submit:disabled {
  cursor: not-allowed;
  transform: none;
}

/* === FOOTER COPY === */
.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.auth-switch a {
  color: var(--accent);
  transition: color 0.2s;
}

.auth-switch a:hover {
  color: var(--accent-bright);
}

.auth-legal {
  font-size: 0.75rem;
  color: #444;
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

/* === NAV AUTH UI (injected by auth.js into all pages) === */
.nav-auth {
  display: flex;
  align-items: center;
}

.nav-auth-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: #000;
  background: linear-gradient(135deg, #888 0%, #e0e0e0 50%, #a0a0a0 100%);
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}

.nav-auth-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* === USER MENU IN NAV === */
.nav-user-menu {
  position: relative;
}

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(192,192,192,0.08);
  border: 1px solid rgba(192,192,192,0.15);
  border-radius: 24px;
  padding: 6px 14px 6px 8px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
}

.nav-user-btn:hover {
  background: rgba(192,192,192,0.12);
  border-color: rgba(192,192,192,0.25);
}

.nav-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #555 0%, #aaa 100%);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-user-label {
  font-size: 0.85rem;
  font-weight: 500;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-tier {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--amber);
  background: rgba(201,168,76,0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* === USER DROPDOWN === */
.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.8);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 9999;
}

.nav-user-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-user-info {
  padding: 8px 12px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.nav-user-email {
  font-size: 0.8rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-unverified {
  font-size: 0.75rem;
  color: #f59e0b;
  margin-top: 4px;
}

.nav-user-logout {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 10px 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s;
}

.nav-user-logout:hover {
  background: rgba(220,38,38,0.08);
  color: #f87171;
}

/* === GLOBAL AUTH BANNER (verified notification etc.) === */
.auth-banner {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  animation: bannerSlideIn 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.auth-banner-success {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  color: #34d399;
}

.auth-banner-error {
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.25);
  color: #f87171;
}

@keyframes bannerSlideIn {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
