/* Split-card sign-up page (signup.html only). */

body.page-signup-split {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  box-sizing: border-box;
  background: #f3f5f9;
  color: #153022;
}

body.page-signup-split::before {
  display: none;
}

.page-signup-split [hidden] {
  display: none !important;
}

.page-signup-split *,
.page-signup-split *::before,
.page-signup-split *::after {
  box-sizing: border-box;
}

.su-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  max-width: 960px;
  min-height: 640px;
  border-radius: 26px;
  overflow: hidden;
  background: #fefefe;
  box-shadow:
    0 1px 2px rgba(15, 35, 70, 0.04),
    0 24px 60px -24px rgba(23, 56, 120, 0.22);
}

/* ---------- Left hero ---------- */

.su-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 34px 32px;
  overflow: hidden;
  color: #fefefe;
  background: linear-gradient(160deg, #4583f7 0%, #3a74f1 45%, #2c5ee6 100%);
}

.su-hero__ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.su-hero__ring--top {
  top: -70px;
  right: -60px;
  width: 220px;
  height: 220px;
  border: 34px solid rgba(255, 255, 255, 0.09);
}

.su-hero__ring--bottom {
  bottom: -110px;
  left: -60px;
  width: 240px;
  height: 240px;
  background: rgba(255, 255, 255, 0.05);
}

.su-hero__brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.su-hero__logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #fefefe;
  overflow: hidden;
  box-shadow: 0 6px 16px -8px rgba(10, 30, 90, 0.5);
}

.su-hero__logo img {
  width: 150%;
  height: 150%;
  object-fit: contain;
  transform: translateY(-4%);
}

.su-hero__name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Student account step: centered card with progress inside (no split hero). */
html.signup-account-center body.page-signup-split {
  padding: 28px 16px 36px;
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(255, 255, 255, 0.65), transparent 55%),
    linear-gradient(165deg, #e8f0fb 0%, #dce8f8 45%, #e9f1fb 100%);
}

html.signup-account-center body.page-signup-split .su-hero {
  display: none;
}

html.signup-account-center body.page-signup-split .su-shell {
  display: block;
  width: min(540px, 100%);
  max-width: 540px;
  min-height: 0;
  border-radius: 24px;
  box-shadow:
    0 1px 2px rgba(15, 35, 70, 0.04),
    0 22px 48px -28px rgba(23, 56, 120, 0.28);
}

html.signup-account-center body.page-signup-split .su-panel {
  padding: 0 28px 26px;
}

html.signup-account-center .su-progress-mount {
  margin: 0 -28px 14px;
}

html.signup-account-center .register-progress--embedded {
  position: static;
  top: auto;
  z-index: 1;
  width: auto;
  max-width: none;
  padding: 18px 28px 14px;
  border: 0;
  border-bottom: 1px solid #e8eef8;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 24px 24px 0 0;
  box-sizing: border-box;
}

html.signup-account-center .register-progress--embedded .register-progress__inner {
  width: 100%;
  margin: 0;
}

html.signup-account-center .register-progress--embedded .register-progress__meta {
  margin: 0 0 6px;
}

html.signup-account-center .register-progress--embedded .register-progress__title {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

html.signup-account-center .register-progress--embedded .register-progress__count {
  font-size: 0.74rem;
}

html.signup-account-center .register-progress--embedded .register-progress__track {
  height: 6px;
}

html.signup-account-center .su-topbar {
  margin-bottom: 16px;
}

html.signup-account-center .su-title {
  margin-bottom: 4px;
}

.su-hero__copy {
  position: relative;
  margin: auto 0;
  padding: 40px 0;
}

.su-hero__title {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 2.6vw, 1.95rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: #fefefe;
}

.su-hero__text {
  margin: 0;
  max-width: 36ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

.su-hero__perks {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.su-hero__perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
}

.su-hero__perks li::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat,
    rgba(255, 255, 255, 0.2);
}

/* ---------- Right panel ---------- */

.su-panel {
  padding: 30px 34px 26px;
}

.su-step[hidden],
.su-form[hidden] {
  display: none !important;
}

.su-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.su-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 650;
  color: #52606f;
  text-decoration: none;
}

.su-back:hover {
  color: #153022;
}

.su-badge {
  padding: 6px 12px;
  border: 1px solid #dbe6fb;
  border-radius: 999px;
  background: #eef4ff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #174483;
}

.su-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #153022;
}

.su-form {
  margin-top: 0;
}

.su-section-label {
  margin: 22px 0 10px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #52606f;
}

.su-form > .su-section-label:first-child {
  margin-top: 12px;
}

.su-field + .su-field {
  margin-top: 14px;
}

.su-field > label,
.su-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: #153022;
}

.su-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #e3e9f2;
  border-radius: 12px;
  background: #f9fbfe;
  color: #8a98a8;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.su-input:focus-within {
  border-color: #9dbcf8;
  background: #fefefe;
  box-shadow: 0 0 0 3px rgba(61, 123, 245, 0.12);
}

.su-input > svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.su-input input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: #153022;
  box-shadow: none;
}

.su-input input:-webkit-autofill,
.su-input input:-webkit-autofill:hover,
.su-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: #153022;
  caret-color: #153022;
  -webkit-box-shadow: 0 0 0 1000px #f9fbfe inset;
  box-shadow: 0 0 0 1000px #f9fbfe inset;
  transition: background-color 9999s ease-out 0s;
}

.su-input:focus-within input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fefefe inset;
  box-shadow: 0 0 0 1000px #fefefe inset;
}

.su-input input::placeholder {
  color: #8f9cab;
}

.su-eye {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: -6px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #52606f;
  cursor: pointer;
}

.su-eye:hover {
  background: #eef2f8;
}

.su-eye svg {
  width: 17px;
  height: 17px;
}

.su-eye[aria-pressed="true"] {
  color: #3d7bf5;
}

/* Grade segmented choice */

.su-grade-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.su-grade {
  height: 40px;
  padding: 0 8px;
  border: 1px solid #e3e9f2;
  border-radius: 12px;
  background: #fefefe;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #2b3a4a;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.su-grade:hover {
  border-color: #c9d7ee;
  background: #f7faff;
}

.su-grade[aria-checked="true"] {
  border-color: #6b9bf7;
  background: #eef4ff;
  color: #174483;
  box-shadow: 0 0 0 2px rgba(61, 123, 245, 0.14);
}

.su-grade:focus-visible,
.su-eye:focus-visible,
.su-link-btn:focus-visible,
.su-submit:focus-visible {
  outline: 2px solid #3d7bf5;
  outline-offset: 2px;
}

.su-grad-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: #3d4d5f;
}

.su-grad-line svg {
  width: 14px;
  height: 14px;
  color: #52606f;
}

.su-link-btn {
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 750;
  color: #174483;
  cursor: pointer;
}

.su-link-btn:hover {
  text-decoration: underline;
}

.su-grad-select {
  margin-top: 10px;
}

.su-select {
  width: 100%;
  height: 42px;
  padding: 0 36px 0 14px;
  border: 1px solid #e3e9f2;
  border-radius: 12px;
  background: #f9fbfe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352606f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 14px no-repeat;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #153022;
  appearance: none;
  cursor: pointer;
}

/* Password strength */

.su-strength {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.su-strength span {
  height: 4px;
  border-radius: 999px;
  background: #e8edf4;
  transition: background-color 0.2s ease;
}

.su-strength[data-level="1"] span:nth-child(-n + 1) { background: #f59e0b; }
.su-strength[data-level="2"] span:nth-child(-n + 2) { background: #3d7bf5; }
.su-strength[data-level="3"] span { background: #16a34a; }

.su-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.su-rules li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 550;
  color: #3d4d5f;
}

.su-rules li::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 9px no-repeat,
    #cfd8e3;
  transition: background-color 0.2s ease;
}

.su-rules li.is-met {
  color: #15803d;
}

.su-rules li.is-met::before {
  background-color: #16a34a;
}

/* Message + submit */

.su-message {
  margin: 16px 0 0;
}

.su-message:empty {
  display: none;
}

.su-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  margin-top: 22px;
  border: none;
  border-radius: 999px;
  background: #3d7bf5;
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  color: #fefefe;
  cursor: pointer;
  box-shadow: 0 12px 24px -12px rgba(37, 99, 235, 0.75);
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.su-submit::after {
  content: "";
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.su-submit:hover {
  background: #2f6de8;
}

.su-submit:active {
  transform: translateY(1px);
}

.su-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.su-visually-hidden {
  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;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  body.page-signup-split {
    align-items: flex-start;
    padding: 16px 12px;
  }

  .su-shell {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 22px;
  }

  .su-hero {
    padding: 22px 24px;
  }

  .su-hero__copy {
    padding: 22px 0 4px;
  }

  .su-hero__perks,
  .su-hero__ring--bottom {
    display: none;
  }

  .su-panel {
    padding: 24px 22px 22px;
  }

  html.signup-account-center body.page-signup-split {
    align-items: center;
    padding: 20px 12px 28px;
  }

  html.signup-account-center body.page-signup-split .su-panel {
    padding: 0 22px 22px;
  }

  html.signup-account-center .su-progress-mount {
    margin: 0 -22px 16px;
  }

  html.signup-account-center .register-progress--embedded {
    padding: 12px 22px 10px;
  }
}

@media (max-width: 420px) {
  .su-grade-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
