* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #243b72;
  --navy-dark: #1c2f5a;
  --gold: #f0b828;
  --text: #162033;
  --muted: #667085;
  --line: #d9dde6;
  --bg: #f3f4f6;
  --card: #ffffff;
  --shadow: 0 14px 35px rgba(24, 39, 75, 0.08);
  --shadow-soft: 0 10px 24px rgba(24, 39, 75, 0.06);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* TOPBAR */
.topbar {
  width: 100%;
  min-height: 72px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 32px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
}

.brand-text h1 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.15;
}

.brand-text p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.2;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #fff;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-login {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
}

.topbar-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--gold);
  color: #111;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.topbar-create:hover,
.topbar-create.active {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

/* PAGE */
.signup-shell {
  min-height: calc(100vh - 72px);
  padding: 28px 20px 48px;
}

.signup-view {
  width: 100%;
}

.hidden {
  display: none !important;
}

.signup-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.form-container {
  max-width: 860px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: #5b667a;
  text-decoration: none;
  font-size: 0.98rem;
  margin-bottom: 26px;
  cursor: pointer;
  padding: 0;
}

.back-link:hover {
  color: var(--navy);
}

.signup-hero {
  text-align: center;
  margin-bottom: 34px;
}

.signup-hero.compact {
  margin-bottom: 24px;
}

.hero-logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-soft);
}

.hero-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.signup-hero h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
  font-weight: 700;
  color: #1e2f57;
  margin-bottom: 8px;
}

.signup-hero p {
  font-size: 1rem;
  color: var(--muted);
}

/* CHOOSER */
.account-grid {
  display: grid;
  gap: 18px;
}

.account-grid-four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-option {
  border: 1px solid #d3d8e3;
  background: #fff;
  border-radius: 18px;
  min-height: 166px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.account-option:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #b7c2d8;
}

.account-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #e8ebf1;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.45rem;
}

.account-option h3 {
  font-size: 1.05rem;
  color: #12203d;
  margin-bottom: 8px;
  font-weight: 700;
}

.account-option p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* FORM */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 28px;
}

.signup-form {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.93rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  height: 48px;
  border: 1px solid #cfd6e3;
  border-radius: 14px;
  background: #fff;
  color: #111827;
  font-size: 0.98rem;
  padding: 0 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #8fa6d8;
  box-shadow: 0 0 0 4px rgba(36, 59, 114, 0.10);
}

.form-group input[readonly] {
  background: #f5f7fb;
  color: #667085;
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.primary-btn,
.secondary-btn {
  min-height: 46px;
  border-radius: 14px;
  padding: 0 22px;
  text-decoration: none;
  border: none;
  font-size: 0.97rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.primary-btn {
  background: var(--gold);
  color: #111;
}

.secondary-btn {
  background: var(--navy);
  color: #fff;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.form-note {
  text-align: center;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.message {
  min-height: 22px;
  margin-top: 18px;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: center;
  font-size: 0.95rem;
}

.message.info {
  background: rgba(37, 99, 235, 0.10);
  color: #1d4ed8;
}

.message.success {
  background: rgba(22, 163, 74, 0.10);
  color: #15803d;
}

.message.error {
  background: rgba(220, 38, 38, 0.10);
  color: #b91c1c;
}

@media (max-width: 980px) {
  .topbar {
    justify-content: center;
    text-align: center;
    padding: 14px 20px;
  }

  .brand,
  .main-nav,
  .topbar-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .signup-shell {
    padding: 22px 14px 36px;
  }

  .signup-hero h2 {
    font-size: 1.8rem;
  }

  .account-grid-four,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group-full {
    grid-column: auto;
  }

  .form-card {
    padding: 22px 16px;
  }
}

@media (max-width: 560px) {
  .brand-text h1 {
    font-size: 0.96rem;
  }

  .brand-text p {
    font-size: 0.8rem;
  }

  .main-nav {
    gap: 16px;
  }

  .main-nav a,
  .topbar-login,
  .topbar-create {
    font-size: 0.9rem;
  }

  .signup-hero h2 {
    font-size: 1.6rem;
  }

  .signup-hero p,
  .account-option p,
  .form-note {
    font-size: 0.9rem;
  }

  .account-option {
    min-height: 150px;
    padding: 20px 16px;
  }
}