﻿/* ============================================================
   Regency Analytics LLC — Auth page (login / signup / reset)
   ============================================================ */

:root {
  --auth-navy: #0b1c33;
  --auth-navy-hover: #132742;
  --auth-ink: #101828;
  --auth-muted: #667085;
  --auth-border: #d0d5dd;
  --auth-border-focus: #98a2b3;
  --auth-soft: #eef3fb;
  --auth-blob: rgba(147, 179, 232, 0.35);
  --auth-error: #b42318;
  --auth-error-bg: #fef3f2;
  --auth-ok: #027a48;
  --auth-ok-bg: #ecfdf3;
}

body.auth-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at -8% -10%, var(--auth-blob) 0%, transparent 42%),
    radial-gradient(circle at 108% -5%, var(--auth-blob) 0%, transparent 40%),
    radial-gradient(circle at 50% 120%, rgba(180, 205, 245, 0.28) 0%, transparent 45%),
    #ffffff;
  background-attachment: fixed;
  font-family: var(--font-body);
  color: var(--auth-ink);
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.auth-top-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--auth-ink);
}

.auth-top-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.auth-top-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.auth-top-link {
  color: var(--auth-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.auth-top-link:hover {
  color: var(--auth-ink);
}

.auth-stage {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 48px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-head {
  text-align: left;
  margin-bottom: 28px;
}

.auth-title {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: clamp(1.85rem, 4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--auth-ink);
  line-height: 1.15;
}

.auth-subtitle {
  margin: 0;
  font-size: 0.98rem;
  color: var(--auth-muted);
  font-weight: 400;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  position: relative;
}

.auth-field label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.auth-input {
  width: 100%;
  height: 54px;
  border-radius: 999px;
  border: 1.5px solid var(--auth-border);
  background: #fff;
  padding: 0 22px;
  font: 500 15px/1.2 var(--font-body);
  color: var(--auth-ink);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-input::placeholder {
  color: #98a2b3;
  font-weight: 400;
}

.auth-input:focus {
  border-color: var(--auth-border-focus);
  box-shadow: 0 0 0 4px rgba(59, 111, 232, 0.1);
}

.auth-input.has-toggle {
  padding-right: 52px;
}

.auth-toggle-pw {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #667085;
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-toggle-pw:hover {
  color: var(--auth-ink);
  background: rgba(16, 24, 40, 0.04);
}

.auth-row-end {
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
  margin-bottom: 2px;
}

.auth-text-btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: 500 13px/1.2 var(--font-body);
  color: var(--auth-muted);
  cursor: pointer;
  text-decoration: none;
}

.auth-text-btn:hover {
  color: var(--auth-ink);
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--auth-navy);
  color: #fff;
  font: 600 16px/1 var(--font-body);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease;
  margin-top: 4px;
}

.auth-submit:hover:not(:disabled) {
  background: var(--auth-navy-hover);
}

.auth-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-alert,
.auth-success {
  display: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
}

.auth-alert.show {
  display: block;
  background: var(--auth-error-bg);
  color: var(--auth-error);
  border: 1px solid rgba(180, 35, 24, 0.18);
}

.auth-success.show {
  display: block;
  background: var(--auth-ok-bg);
  color: var(--auth-ok);
  border: 1px solid rgba(2, 122, 72, 0.18);
}

.auth-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 28px 0 8px;
}

.auth-social-btn {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: #eceff3;
  color: #1d2939;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.auth-social-btn:hover {
  background: #e1e5eb;
  transform: translateY(-1px);
}

.auth-footer {
  margin-top: 28px;
  text-align: center;
  color: var(--auth-muted);
  font-size: 14px;
}

.auth-footer button,
.auth-footer a {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  color: var(--blue-500);
  font: 600 14px/1.2 var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-staff {
  margin-top: 18px;
  text-align: center;
}

.auth-staff button {
  appearance: none;
  border: 0;
  background: none;
  color: #98a2b3;
  font: 500 12px/1.2 var(--font-body);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-panel[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .auth-top {
    padding: 14px 16px;
  }

  .auth-top-brand span {
    display: none;
  }

  .auth-stage {
    padding: 12px 16px 40px;
    align-items: flex-start;
    padding-top: 36px;
  }

  .auth-title {
    font-size: 1.85rem;
  }
}
