/* ═══════════════════════════════════════════════════════════
   AUTH PAGE
═══════════════════════════════════════════════════════════ */
.auth-page {
  min-height: calc(100vh - 80px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}

/* ─── Account picker ─── */
.picker-list {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 4px;
}
.picker-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  text-align: right;
  transition: all 0.15s;
}
.picker-row:hover {
  border-color: var(--accent-1);
  background: rgba(139, 92, 246, 0.12);
  transform: translateY(-1px);
}
.picker-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
  background: var(--grad-btn);
  color: white;
  flex-shrink: 0;
}
.picker-info { flex: 1; min-width: 0; }
.picker-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-mail { font-size: 11px; color: var(--text-soft); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-arrow { font-size: 18px; color: var(--accent-1); }

.auth-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 40px 36px;
  background: linear-gradient(180deg, rgba(26, 26, 64, 0.75), rgba(15, 15, 46, 0.75));
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  z-index: 1;
}

.auth-glow {
  position: absolute;
  inset: -40px;
  background: var(--grad-primary);
  opacity: 0.18;
  filter: blur(90px);
  z-index: -1;
  animation: glow-pulse 7s ease-in-out infinite;
}

.auth-head { text-align: center; margin-bottom: 26px; }
.auth-title {
  font-size: 28px; font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.auth-sub { color: var(--text-soft); font-size: 14px; }

.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 22px;
}
.auth-tab {
  padding: 10px;
  background: none;
  border-radius: 9px;
  color: var(--text-soft);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active {
  background: var(--grad-btn);
  color: white;
  box-shadow: 0 4px 12px -4px rgba(139, 92, 246, 0.6);
}

.auth-google {
  margin-bottom: 16px;
  background: white !important;
  color: #1f1f1f !important;
  border: none !important;
  font-weight: 600 !important;
}
.auth-google:hover {
  background: #f1f5f9 !important;
  transform: translateY(-1px);
}

.auth-divider {
  position: relative; text-align: center;
  margin: 18px 0;
  color: var(--text-dim);
  font-size: 12px;
}
.auth-divider::before {
  content: ''; position: absolute; inset: 50% 0 0; height: 1px;
  background: var(--border);
}
.auth-divider span {
  position: relative; z-index: 1;
  background: #141434; padding: 0 12px;
}

.auth-form .field { margin-bottom: 14px; }
.auth-form label {
  font-size: 13px; font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px; display: block;
}
.auth-form input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.auth-form input:focus {
  border-color: var(--accent-1);
  background: rgba(0, 0, 0, 0.5);
}

.auth-error, .auth-success {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin: 12px 0;
  line-height: 1.5;
}
.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.auth-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

#submitBtn { margin-top: 10px; }

.auth-link-row {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
}
.auth-link-row a { color: var(--accent-1); }
.auth-link-row a:hover { color: var(--accent-2); }

.auth-foot {
  margin-top: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.6;
}
.auth-foot a { color: var(--text-soft); }
.auth-foot a:hover { color: var(--accent-1); }
