* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  color: #111827;
  background: #fff;
}

a {
  color: var(--accent, #321596);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.landing-page {
  min-height: 100vh;
  display: grid;
}

.landing-page.plain {
  grid-template-columns: 1fr;
}

.landing-page.with-hero {
  grid-template-columns: minmax(320px, 44%) minmax(0, 56%);
}

.hero-panel {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 18, 35, 0.22),
    rgba(10, 18, 35, 0.64)
  );
}

.hero-copy {
  position: absolute;
  left: clamp(28px, 6vw, 82px);
  right: clamp(28px, 6vw, 82px);
  bottom: clamp(42px, 8vh, 96px);
  color: white;
  z-index: 1;
}

.hero-copy h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.035em;
}

.hero-copy p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
  max-width: 580px;
  color: rgba(255, 255, 255, 0.9);
}

.signup-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 28px;
  min-height: 100vh;
  background: #fff;
}

.plain .signup-panel {
  padding-top: 42px;
  padding-bottom: 42px;
}

.signup-wrap {
  width: min(100%, 610px);
}

.captcha-section .g-recaptcha > div {
  margin: 0 auto;
}
.position-text-center {
    text-align: center;
}

.brand-header {
  text-align: center;
  margin-bottom: 30px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

.brand-name {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.brand-tagline {
  font-size: 12.5px;
  margin-top: 5px;
  color: #4b5563;
  letter-spacing: 0.01em;
}

.form-heading {
  margin-bottom: 24px;
}

.form-heading h1 {
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.025em;
}

.form-heading p {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
}

.name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin: 0 0 9px;
  font-size: 14px;
  color: #111827;
}

.field input {
  width: 100%;
  height: 54px;
  border: 1px solid #d9dee8;
  border-radius: 5px;
  padding: 0 14px;
  font-size: 15px;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input::placeholder {
  color: #9ca3af;
}

.field input:focus {
  border-color: var(--accent, #321596);
  box-shadow: 0 0 0 3px rgba(50, 21, 150, 0.1);
}

.password-wrap {
  display: flex;
  position: relative;
}

.password-wrap input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  right: 0;
  top: 0;
  width: 48px;
  height: 54px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 16px;
}

.field-error {
  display: block;
  margin-top: 4px;
  color: #b42318;
  font-size: 12.5px;
  line-height: 1.4;
}

.block-error {
  margin-top: 5px;
}

.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 4px;
  color: #6b7280;
  font-size: 12.5px;
  line-height: 1.5;
}

.terms-row input {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  accent-color: var(--accent, #321596);
}

.captcha-section {
  margin: 18px 0 20px;
}

.captcha-wrap {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
}

.captcha-help {
  margin: 8px 0 0;
  color: #8a94a6;
  font-size: 11.5px;
  line-height: 1.45;
}

.login-line {
  text-align: left;
  font-size: 13px;
  color: #6b7280;
  margin: 22px 0 16px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  min-height: 52px;
  padding: 0 24px;
  font-weight: 650;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.primary-button {
  width: 100%;
  border: 1px solid var(--accent, #321596);
  background: var(--accent, #321596);
  color: #fff;
}

.primary-button:hover {
  opacity: 0.93;
  text-decoration: none;
}

.primary-button:disabled,
.primary-button[aria-busy="true"] {
  opacity: 0.6;
  cursor: wait;
}

.secondary-button {
  border: 1px solid #d6dae2;
  background: #fff;
  color: #111827;
}

.secondary-button:hover {
  text-decoration: none;
  border-color: #9ca3af;
}

.link-button {
  width: auto;
  min-width: 230px;
}

.alert {
  padding: 13px 15px;
  border-radius: 6px;
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.5;
}

.alert-danger {
  background: #fff2f0;
  border: 1px solid #ffd2cc;
  color: #8d2018;
}

.landing-footer {
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 26px;
}

.status-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: #f8fafc;
}

.status-card {
  width: min(100%, 560px);
  padding: 48px 42px;
  background: #fff;
  border: 1px solid #e8ebf0;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.06);
}

.status-card .brand-name {
  font-size: 24px;
}

.status-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 34px auto 18px;
  background: #f3f4f6;
  color: #475569;
  font-size: 28px;
  font-weight: 750;
}

.status-icon.success {
  background: #ecfdf3;
  color: #067647;
}

.status-card h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.status-card p {
  color: #667085;
  line-height: 1.7;
  margin: 0 auto 28px;
  max-width: 440px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.password-toggle:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid
    color-mix(in srgb, var(--accent, #321596) 28%, transparent);
  outline-offset: 2px;
}

/* Tablet */
@media (max-width: 900px) {
  .landing-page.with-hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 220px;
  }

  .hero-copy {
    left: 28px;
    right: 28px;
    bottom: 28px;
  }

  .hero-copy h2 {
    font-size: 32px;
  }

  .hero-copy p {
    font-size: 14px;
    line-height: 1.55;
  }

  .signup-panel {
    min-height: auto;
    padding: 40px 22px 54px;
  }

  .with-hero .signup-panel {
    min-height: calc(100vh - 220px);
  }
}

/* Mobile */
@media (max-width: 580px) {
  .landing-page.plain .signup-panel {
    align-items: flex-start;
    padding: 30px 20px 44px;
  }

  .signup-wrap {
    max-width: 100%;
  }

  .brand-header {
    margin-bottom: 26px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand-name {
    font-size: 23px;
  }

  .brand-tagline {
    font-size: 12px;
  }

  .form-heading h1 {
    font-size: 26px;
  }

  .name-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .field {
    margin-bottom: 18px;
  }

  .field input,
  .password-toggle {
    height: 56px;
  }

  .status-card {
    padding: 38px 24px;
  }

  .g-recaptcha {
    transform: scale(0.88);
    transform-origin: 0 0;
  }

  .captcha-section {
    margin-bottom: 16px;
  }
}