/* ═══════════════════════════════════════════════════════════════
   Auth Modal — shared styles used on landing.html + app
   ═══════════════════════════════════════════════════════════════ */

#auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99000;
  background: rgba(0, 0, 0, 0.72);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  padding: 16px;
}
#auth-modal.open { display: flex; }

#auth-box {
  background: rgba(12, 12, 24, 0.98);
  border: 1px solid rgba(100, 140, 255, 0.22);
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85);
  width: 420px;
  max-width: 100%;
  padding: 36px 36px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: auth-pop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes auth-pop {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

#auth-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: #7a9ec0;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}
#auth-close:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* ── Logo ── */
#auth-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.auth-logo-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.auth-logo-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: #c8e0ff;
  letter-spacing: 0.03em;
}

/* ── View ── */
.auth-view { display: flex; flex-direction: column; gap: 14px; }

.auth-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e8f0ff;
  letter-spacing: -0.02em;
  margin: 0;
}
.auth-sub {
  font-size: 0.85rem;
  color: #7a9ec0;
  margin: -8px 0 0;
}

/* ── OAuth buttons ── */
.auth-oauth-row {
  display: flex;
  gap: 10px;
}
.auth-oauth-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #c8e0ff;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
}
.auth-oauth-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3a4a6a;
  font-size: 0.78rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(100, 140, 255, 0.15);
}

/* ── Form fields ── */
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}
.auth-field label {
  font-size: 0.78rem;
  color: #9ab8e0;
  font-weight: 500;
}
.auth-hint {
  color: #5a7898;
  font-weight: 400;
}
.auth-field input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(100, 140, 255, 0.2);
  border-radius: 9px;
  color: #e0e8ff;
  font-size: 0.92rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  width: 100%;
}
.auth-field input:focus {
  border-color: #6488ff;
  box-shadow: 0 0 0 3px rgba(100, 140, 255, 0.12);
}
.auth-field input::placeholder { color: #3a4a6a; }

.auth-forgot-link {
  background: transparent;
  border: none;
  color: #6488ff;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  text-align: right;
  font-family: inherit;
  align-self: flex-end;
  margin-top: -2px;
  transition: color 0.15s;
}
.auth-forgot-link:hover { color: #88aaff; }

/* ── Messages ── */
.auth-error {
  font-size: 0.8rem;
  color: #ff8080;
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.2);
  border-radius: 8px;
  padding: 9px 12px;
}
.auth-success {
  font-size: 0.8rem;
  color: #4cdd7a;
  background: rgba(76, 221, 122, 0.08);
  border: 1px solid rgba(76, 221, 122, 0.2);
  border-radius: 8px;
  padding: 9px 12px;
}

/* ── Submit button ── */
.auth-submit-btn {
  padding: 12px 0;
  background: linear-gradient(135deg, #3a5acc, #6488ff);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  font-family: inherit;
  margin-top: 2px;
}
.auth-submit-btn:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-1px);
}
.auth-submit-btn:disabled { opacity: 0.5; cursor: default; }

/* ── Switch link ── */
.auth-switch {
  font-size: 0.82rem;
  color: #7a9ec0;
  text-align: center;
  margin-top: 2px;
}
.auth-switch button {
  background: transparent;
  border: none;
  color: #6488ff;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  transition: color 0.15s;
}
.auth-switch button:hover { color: #88aaff; }
