/* Partner join — modern public landing */

.pj-page {
  --pj-ink: #0b1f3a;
  --pj-muted: #5b6b7c;
  --pj-line: rgba(15, 32, 51, 0.1);
  --pj-accent: #0f766e;
  --pj-accent-2: #1e4d6b;
  --pj-soft: #e8f7f4;
  position: relative;
  min-height: calc(100vh - var(--header-h, 78px));
  padding: calc(var(--header-h, 78px) + 2.5rem) 1.25rem 3.5rem;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 100% -10%, rgba(15, 118, 110, 0.16), transparent 55%),
    radial-gradient(700px 420px at -5% 80%, rgba(30, 77, 107, 0.12), transparent 50%),
    linear-gradient(165deg, #f4f7fa 0%, #eef3f7 45%, #e7eef4 100%);
}

.pj-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 31, 58, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 58, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}

.pj-shell {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 920px) {
  .pj-shell {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.75rem;
    align-items: center;
  }
}

.pj-brand {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pj-accent-2);
}

.pj-copy h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--pj-ink);
}

.pj-lead {
  margin: 1rem 0 1.75rem;
  max-width: 28rem;
  color: var(--pj-muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.pj-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.pj-flow li {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--pj-line);
  backdrop-filter: blur(8px);
}

.pj-flow strong {
  color: var(--pj-ink);
  font-size: 0.95rem;
}

.pj-flow span {
  color: var(--pj-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.pj-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.35rem;
}

.pj-chips span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pj-accent);
  background: var(--pj-soft);
  border: 1px solid rgba(15, 118, 110, 0.15);
}

.pj-login-link {
  display: inline-block;
  margin-top: 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pj-accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pj-form-panel {
  background: #fff;
  border: 1px solid var(--pj-line);
  border-radius: 1.5rem;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 50px rgba(11, 31, 58, 0.08);
  animation: pj-rise 0.55s ease both;
}

@keyframes pj-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.pj-form-head h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--pj-ink);
  letter-spacing: -0.02em;
}

.pj-form-head p {
  margin: 0.4rem 0 1.35rem;
  color: var(--pj-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.pj-form {
  display: grid;
  gap: 0.95rem;
}

.pj-field-row {
  display: grid;
  gap: 0.95rem;
}

@media (min-width: 520px) {
  .pj-field-row {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.pj-field {
  position: relative;
}

.pj-field input,
.pj-field textarea {
  width: 100%;
  border: 1px solid #d5dde6;
  border-radius: 0.95rem;
  background: #f7f9fb;
  color: var(--pj-ink);
  font: inherit;
  font-size: 0.98rem;
  padding: 1.35rem 1rem 0.55rem;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  outline: none;
  appearance: none;
}

.pj-field textarea {
  resize: vertical;
  min-height: 6.5rem;
  line-height: 1.6;
  padding-top: 1.55rem;
}

.pj-field label {
  position: absolute;
  inset-inline-start: 1rem;
  top: 1.05rem;
  font-size: 0.95rem;
  color: #8090a0;
  pointer-events: none;
  transition: transform 0.16s ease, font-size 0.16s ease, color 0.16s ease, top 0.16s ease;
}

.pj-field input:focus,
.pj-field textarea:focus,
.pj-field input:not(:placeholder-shown),
.pj-field textarea:not(:placeholder-shown) {
  background: #fff;
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.pj-field input:focus + label,
.pj-field textarea:focus + label,
.pj-field input:not(:placeholder-shown) + label,
.pj-field textarea:not(:placeholder-shown) + label {
  top: 0.42rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pj-accent);
}

.pj-field-error,
.pj-errors {
  display: block;
  margin-top: 0.35rem;
  color: #b91c1c;
  font-size: 0.8rem;
}

.pj-errors:empty {
  display: none;
}

.pj-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.95rem 1.25rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  font-size: 0.98rem;
  color: #fff;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 45%, #1e4d6b 100%);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.28);
  transition: transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
}

.pj-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.34);
  color: #fff;
}

.pj-fine {
  margin: 0.15rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: #8a98a8;
  line-height: 1.5;
}

.pj-success {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.pj-success-ico {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--pj-soft);
  color: var(--pj-accent);
  font-size: 1.4rem;
  font-weight: 800;
}

.pj-success h2 {
  margin: 0 0 0.5rem;
  color: var(--pj-ink);
}

.pj-success p {
  margin: 0 0 1.25rem;
  color: var(--pj-muted);
  line-height: 1.75;
}

@media (prefers-reduced-motion: reduce) {
  .pj-form-panel {
    animation: none;
  }
}
