/* =========================================================
   SIGN UP — THE PURPLE LIBRARY
========================================================= */

:root {
  --signup-bg: #160b31;
  --signup-panel: rgba(37, 19, 66, 0.76);
  --signup-panel-strong: #2a154e;
  --signup-lavender: #cfa9ff;
  --signup-accent: #ff4fa0;
  --signup-border: rgba(255, 255, 255, 0.12);
  --signup-muted: #d8c8ef;
  --signup-paper: #fbfaff;
  --signup-text: #171224;
  --signup-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: Inter, sans-serif;
  color: white;
  background: radial-gradient(
    circle at top,
    #6c3aa0 0%,
    #241246 46%,
    #12091f 100%
  );
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

/* HEADER */

.signup-header-nav {
  position: sticky;
  top: 0;
  z-index: 20;

  min-height: 76px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;

  padding: 0 42px;

  background: #2d1658;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.signup-brand {
  display: flex;
  align-items: center;
  gap: 14px;

  color: white;
  text-decoration: none;
}

.signup-brand-dot {
  width: 18px;
  height: 18px;

  border-radius: 50%;

  background: var(--signup-accent);
  box-shadow: 0 0 18px rgba(255, 79, 160, 0.45);
}

.signup-brand span:last-child {
  display: grid;
  gap: 2px;
}

.signup-brand strong {
  color: white;

  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.signup-brand small {
  color: #d8c8ef;

  font-size: 11px;
  font-weight: 800;
}

.signup-main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.signup-main-nav a {
  color: white;
  text-decoration: none;

  font-size: 15px;
  font-weight: 900;
}

.signup-main-nav a:hover,
.signup-main-nav a.active {
  color: var(--signup-accent);
}

.signup-add-link {
  min-height: 44px;

  display: inline-flex;
  align-items: center;

  padding: 0 22px;

  border: 1px solid rgba(207, 169, 255, 0.42);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.06);
  color: var(--signup-accent) !important;
}

.signup-auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.signup-auth a {
  color: white;
  text-decoration: none;

  font-size: 15px;
  font-weight: 900;
}

.signup-signup {
  min-height: 48px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 26px;

  border-radius: 999px;

  background: var(--signup-accent);
  box-shadow: 0 12px 28px rgba(255, 79, 160, 0.24);
}

/* PAGE */

.signup-shell {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 52px 32px 120px;
}

/* HERO */

.signup-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;

  margin-bottom: 28px;
}

.signup-hero-copy,
.signup-preview-card {
  border: 1px solid var(--signup-border);
  border-radius: 34px;

  background: var(--signup-panel);
  box-shadow: var(--signup-shadow);
}

.signup-hero-copy {
  padding: 44px;
}

.signup-kicker,
.signup-section-kicker {
  display: inline-flex;
  align-items: center;

  min-height: 29px;
  padding: 0 11px;
  margin-bottom: 18px;

  border-radius: 999px;

  background: #ffe4f1;
  color: #9f2f68;

  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.signup-hero-copy h1 {
  max-width: 860px;

  color: white;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 76px;
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.signup-hero-copy > p {
  max-width: 760px;

  margin-top: 18px;

  color: #d8c8ef;

  font-size: 17px;
  line-height: 1.65;
}

.signup-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;

  margin-top: 30px;
}

.signup-feature-grid article {
  display: flex;
  gap: 12px;

  padding: 16px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.08);
}

.signup-feature-grid article > span {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;

  border-radius: 16px;

  background: #ff4fa0;
  color: white;
}

.signup-feature-grid svg {
  width: 20px;
  height: 20px;
}

.signup-feature-grid h3 {
  color: white;

  font-size: 14px;
  font-weight: 900;
}

.signup-feature-grid p {
  margin-top: 4px;

  color: #d8c8ef;

  font-size: 12px;
  line-height: 1.45;
}

/* PREVIEW */

.signup-preview-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 28px;
}

.signup-preview-top span {
  display: block;

  color: var(--signup-lavender);

  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signup-preview-top strong {
  display: block;

  margin-top: 8px;

  color: white;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}

.signup-preview-stack {
  display: grid;
  gap: 12px;

  margin: 30px 0;
}

.signup-preview-stack div {
  height: 74px;

  border-radius: 20px;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.06)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.signup-preview-stack div:nth-child(2) {
  width: 82%;
}

.signup-preview-stack div:nth-child(3) {
  width: 64%;
}

.signup-preview-card p {
  color: #d8c8ef;

  font-size: 14px;
  line-height: 1.55;
}

/* LAYOUT */

.signup-layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.signup-path-panel,
.signup-card {
  border: 1px solid var(--signup-border);
  border-radius: 30px;

  background: var(--signup-panel);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.2);
}

.signup-path-panel {
  position: sticky;
  top: 100px;

  padding: 28px;
}

.signup-path-panel h2,
.signup-card-heading h2 {
  color: white;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.signup-path-panel > p,
.signup-card-heading p {
  margin-top: 10px;

  color: #d8c8ef;

  font-size: 14px;
  line-height: 1.55;
}

.signup-path-list {
  display: grid;
  gap: 12px;

  margin-top: 22px;
}

.signup-safety-note {
  display: flex;
  gap: 14px;

  margin-top: 18px;
  padding: 16px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;

  background: rgba(255, 255, 255, 0.07);
}

.signup-safety-note > span {
  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;

  border-radius: 16px;

  background: rgba(255, 255, 255, 0.1);
  color: #ff4fa0;
}

.signup-safety-note svg {
  width: 21px;
  height: 21px;
}

.signup-safety-note h3 {
  color: white;

  font-size: 15px;
  font-weight: 900;
}

.signup-safety-note p {
  margin-top: 5px;

  color: #d8c8ef;

  font-size: 12px;
  line-height: 1.45;
}

.signup-path-card {
  display: flex;
  gap: 14px;

  padding: 16px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;

  background: rgba(255, 255, 255, 0.07);

  cursor: pointer;
  transition: 0.2s ease;
}

.signup-path-card:hover,
.signup-path-card.active {
  border-color: rgba(255, 79, 160, 0.7);
  background: rgba(255, 79, 160, 0.12);
}

.signup-path-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.signup-path-card > span {
  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;

  border-radius: 16px;

  background: #ff4fa0;
  color: white;
}

.signup-path-card svg {
  width: 21px;
  height: 21px;
}

.signup-path-card h3 {
  color: white;

  font-size: 15px;
  font-weight: 900;
}

.signup-path-card p {
  margin-top: 5px;

  color: #d8c8ef;

  font-size: 12px;
  line-height: 1.45;
}

/* FORM CARD */

.signup-card {
  padding: 30px;
}

.signup-card-heading {
  margin-bottom: 24px;
}

.signup-card-heading > span {
  display: inline-flex;

  margin-bottom: 10px;

  color: var(--signup-lavender);

  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signup-form {
  display: grid;
  gap: 20px;
}

.signup-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.signup-field {
  display: grid;
  gap: 8px;
}

.signup-field-full {
  grid-column: 1 / -1;
}

.signup-field span {
  color: #d8c8ef;

  font-size: 12px;
  font-weight: 900;
}

.signup-field input {
  width: 100%;
  min-height: 52px;

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;

  padding: 0 15px;

  background: rgba(255, 255, 255, 0.08);
  color: white;

  font-size: 14px;
  font-weight: 800;
  outline: 0;
}

.signup-field input:focus {
  border-color: rgba(255, 79, 160, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 79, 160, 0.12);
}

.signup-field input::placeholder {
  color: #bca7da;
}

/* PREFERENCES */

.signup-preference-box {
  padding: 18px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;

  background: rgba(255, 255, 255, 0.07);
}

.signup-preference-box h3 {
  color: white;

  font-size: 15px;
  font-weight: 900;
}

.signup-check-list {
  display: grid;
  gap: 11px;

  margin-top: 14px;
}

.signup-check-list label,
.signup-consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;

  color: #d8c8ef;

  font-size: 13px;
  line-height: 1.5;
}

.signup-check-list input,
.signup-consent input {
  width: 17px;
  height: 17px;

  flex: 0 0 auto;
  margin-top: 2px;

  accent-color: #ff4fa0;
}

.signup-consent {
  padding: 16px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.06);
}

/* BUTTONS */

.signup-submit,
.signup-google {
  min-height: 54px;

  border: 0;
  border-radius: 999px;

  color: white;

  font-size: 14px;
  font-weight: 900;
}

.signup-submit {
  background: #ff4fa0;
  box-shadow: 0 12px 28px rgba(255, 79, 160, 0.24);
}

.signup-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.signup-google svg {
  width: 18px;
  height: 18px;
}

.signup-divider {
  position: relative;

  text-align: center;
}

.signup-divider::before {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  top: 50%;

  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.signup-divider span {
  position: relative;

  padding: 0 13px;

  background: #2a154e;
  color: #d8c8ef;

  font-size: 12px;
  font-weight: 900;
}

.signup-login-link {
  text-align: center;

  color: #d8c8ef;

  font-size: 14px;
}

.signup-login-link a,
.signup-terms a {
  color: #ff4fa0;
  text-decoration: none;
  font-weight: 900;
}

.signup-terms {
  display: block;

  color: #bca7da;

  font-size: 12px;
  line-height: 1.6;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .signup-header-nav {
    grid-template-columns: 1fr;
    gap: 18px;

    padding: 18px 22px;
  }

  .signup-main-nav {
    justify-content: flex-start;
    gap: 18px;

    overflow-x: auto;
    padding-bottom: 4px;
  }

  .signup-auth {
    justify-content: flex-start;
  }

  .signup-hero-panel,
  .signup-layout {
    grid-template-columns: 1fr;
  }

  .signup-path-panel {
    position: static;
  }
}

@media (max-width: 700px) {
  .signup-shell {
    padding: 38px 18px 90px;
  }

  .signup-hero-copy {
    padding: 30px 24px;
  }

  .signup-hero-copy h1 {
    font-size: 48px;
  }

  .signup-feature-grid,
  .signup-field-grid {
    grid-template-columns: 1fr;
  }

  .signup-field-full {
    grid-column: auto;
  }

  .signup-card,
  .signup-path-panel {
    padding: 24px;
  }
}

.signup-status {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.signup-status[data-type="error"] {
  background: rgba(190, 45, 90, 0.1);
  border: 1px solid rgba(190, 45, 90, 0.25);
}

.signup-status[data-type="success"] {
  background: rgba(60, 160, 100, 0.1);
  border: 1px solid rgba(60, 160, 100, 0.25);
}

.signup-status[data-type="info"] {
  background: rgba(120, 80, 190, 0.1);
  border: 1px solid rgba(120, 80, 190, 0.25);
}

.signup-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* =========================================
   ABFL AUTH BRAND VISUAL
========================================= */

.signup-brand-visual,
.login-brand-visual {
  position: relative;
  overflow: hidden;
  min-height: 360px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;

  padding: 32px;

  isolation: isolate;
}

.auth-brand-glow {
  position: absolute;
  width: 280px;
  height: 280px;

  top: 40px;
  left: 50%;

  transform: translateX(-50%);

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(255, 70, 160, 0.28) 0%,
    rgba(129, 72, 200, 0.16) 45%,
    transparent 72%
  );

  filter: blur(8px);

  z-index: -1;
}

.auth-brand-logo {
  width: min(220px, 70%);
  height: auto;

  margin: 10px auto 42px;

  display: block;

  object-fit: contain;
}

.auth-brand-eyebrow {
  display: inline-flex;

  margin-bottom: 10px;

  font-size: 0.75rem;
  font-weight: 800;

  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: #ff4fa3;
}

.signup-brand-visual h2,
.login-brand-visual h2 {
  margin: 0 0 12px;

  font-size: clamp(1.6rem, 2.3vw, 2.4rem);
  line-height: 1.05;
}

.signup-brand-visual p,
.login-brand-visual p {
  margin: 0;

  line-height: 1.65;

  opacity: 0.82;
}
/* =========================================================
   ONBOARDING NEXT-STEP NOTE
========================================================= */
.signup-next-step-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px;
  border: 1px solid rgba(207, 169, 255, 0.25);
  border-radius: 20px;
  background: rgba(207, 169, 255, 0.08);
}

.signup-next-step-note > span {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: rgba(255, 79, 160, 0.14);
  color: #ff4fa0;
}

.signup-next-step-note svg {
  width: 20px;
  height: 20px;
}

.signup-next-step-note strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.signup-next-step-note p {
  margin-top: 4px;
  color: #d8c8ef;
  font-size: 12px;
  line-height: 1.5;
}

/* =========================================================
   REQUIRED ACCOUNT TYPE SELECTION
========================================================= */

.signup-account-type-callout {
  padding: 16px 18px;
  border: 1px solid rgba(255, 79, 160, 0.5);
  border-radius: 20px;
  background: rgba(255, 79, 160, 0.12);
}

.signup-account-type-callout span {
  display: block;
  color: #ff90c3;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signup-account-type-callout strong {
  display: block;
  margin-top: 5px;
  color: white;
  font-size: 16px;
}

.signup-account-type-callout p {
  margin-top: 5px;
  color: #d8c8ef;
  font-size: 12px;
  line-height: 1.5;
}

.signup-field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 0 15px;
  background: #3a2759;
  color: white;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  outline: 0;
}

.signup-field select:focus {
  border-color: rgba(255, 79, 160, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 79, 160, 0.12);
}

.signup-account-type-field small {
  color: #bca7da;
  font-size: 11px;
  line-height: 1.45;
}
