/* ============================================================
   Unifical — Auth screens (sign-in / sign-up)
   ============================================================ */

.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  /* subtle grid glow behind the card */
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(177,75,255,.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(0,229,255,.06) 0%, transparent 60%);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 40px 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow:
    0 0 0 1px rgba(150,140,200,.05),
    0 24px 64px -16px rgba(0,0,0,.55);
}

.auth-logo {
  margin-bottom: 32px;
}

.auth-heading {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  margin: 0 0 8px;
}

.auth-sub {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0 0 28px;
  line-height: 1.5;
}

.auth-error {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--err);
  background: rgba(255,93,108,.08);
  border: 1px solid rgba(255,93,108,.25);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin: 0 0 20px;
  line-height: 1.45;
}

.auth-cta {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 15px 26px;
  margin-bottom: 20px;
}

.auth-switch {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0;
  text-align: center;
}

.auth-switch a {
  color: var(--pink-soft);
  text-decoration: none;
  font-weight: 500;
}

.auth-switch a:hover {
  color: var(--pink);
  text-decoration: underline;
}

/* ---- field label kicker ---- */
.auth-field-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

/* ---- account-type section wrapper ---- */
.auth-account-type {
  margin-bottom: 20px;
}

/* ---- segmented control track ---- */
.auth-seg {
  display: flex;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 3px;
  gap: 3px;
}

.auth-seg button {
  flex: 1;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
  background: transparent;
  border: 1px solid transparent;
  border-radius: calc(var(--r-sm) - 2px);
  padding: 9px 16px;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
  line-height: 1;
}

.auth-seg button[aria-pressed="true"] {
  background: rgba(177,75,255,.16);
  border-color: rgba(177,75,255,.3);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.auth-seg button:not([aria-pressed="true"]):hover {
  color: var(--ink-soft);
  background: rgba(255,255,255,.03);
}

/* ---- org name field wrapper ---- */
.auth-field {
  margin-bottom: 20px;
}

/* ---- divider (for future social sign-in) ---- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: .08em;
  margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
