body {
  background:
    radial-gradient(circle at 88% 8%, rgba(206, 228, 190, 0.72), transparent 30rem),
    #edf3ee;
}

a {
  color: #17633f;
  font-weight: 700;
  text-underline-offset: 3px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(440px, 1.1fr);
  width: min(1120px, calc(100% - 48px));
  min-height: min(760px, calc(100dvh - 48px));
  margin: 24px auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(28, 75, 58, 0.12);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(24, 61, 48, 0.14);
}

.welcome-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 42px;
  overflow: hidden;
  color: #f5fff7;
  background:
    linear-gradient(145deg, rgba(31, 108, 75, 0.3), transparent 48%),
    #123f32;
}

.brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand {
  position: relative;
  z-index: 2;
  width: fit-content;
  font-size: 20px;
  font-weight: 800;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: #b7d7c1;
  font-size: 9px;
  letter-spacing: 0.24em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 13px;
  color: #123f32;
  background: #ddf074;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.welcome-copy {
  position: relative;
  z-index: 2;
  max-width: 430px;
  margin: auto 0 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #4e7b68;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.welcome-copy .eyebrow {
  color: #ddf074;
}

.welcome-copy h1 {
  max-width: 420px;
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.welcome-copy > p:last-child {
  max-width: 390px;
  margin: 24px 0 0;
  color: #c6ddd0;
  font-size: 16px;
  line-height: 1.65;
}

.court-graphic {
  position: absolute;
  top: 88px;
  right: -92px;
  width: 310px;
  height: 310px;
  transform: rotate(14deg);
  border: 2px solid rgba(221, 240, 116, 0.18);
  border-radius: 24px;
}

.court-graphic::before,
.court-graphic::after,
.court-line {
  position: absolute;
  display: block;
  content: "";
  background: rgba(221, 240, 116, 0.18);
}

.court-graphic::before {
  inset: 50% 0 auto;
  height: 2px;
}

.court-graphic::after {
  inset: 0 auto 0 50%;
  width: 2px;
}

.court-line--vertical {
  inset: 0 auto 0 25%;
  width: 1px;
}

.court-line--horizontal {
  inset: 25% 0 auto;
  height: 1px;
}

.shuttle {
  position: absolute;
  bottom: 21%;
  left: 20%;
  color: #ddf074;
  filter: drop-shadow(0 0 12px rgba(221, 240, 116, 0.5));
}

.flow-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #d7e8dd;
  font-size: 13px;
}

.flow-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flow-list span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #ddf074;
  font-size: 11px;
  font-weight: 800;
}

.form-panel {
  display: grid;
  padding: clamp(32px, 7vw, 82px);
  place-items: center;
}

.mobile-brand {
  display: none;
}

.auth-card {
  width: min(100%, 430px);
}

.form-heading {
  margin-bottom: 30px;
}

.form-heading h2 {
  margin: 0;
  color: #143c30;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.form-heading > p:last-child {
  margin: 12px 0 0;
  color: #62776e;
  line-height: 1.55;
}

#entry,
#verification,
.registration-fields {
  display: grid;
  gap: 20px;
}

.registration-fields {
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
  color: #254a3d;
  font-size: 14px;
  font-weight: 750;
}

.field small {
  color: #71837b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

input,
select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #bfd0c5;
  border-radius: 12px;
  outline: none;
  color: #143c30;
  background: #fbfdfb;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
  color: #93a29b;
}

input:hover,
select:hover {
  border-color: #8dab9a;
}

input:focus,
select:focus {
  border-color: #26734e;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(38, 115, 78, 0.13);
}

input:user-invalid {
  border-color: #bd543f;
}

.otp-input {
  height: 68px;
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.3em;
  font-variant-numeric: tabular-nums;
}

.primary-button {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #1f704b;
  box-shadow: 0 9px 24px rgba(31, 112, 75, 0.2);
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #185f3e;
  box-shadow: 0 12px 28px rgba(31, 112, 75, 0.25);
}

.primary-button:active:not(:disabled) {
  transform: translateY(0);
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.verification-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.text-button {
  padding: 0;
  border: 0;
  color: #17633f;
  background: transparent;
  cursor: pointer;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feedback {
  min-height: 0;
  margin-top: 18px;
  padding: 0;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.feedback:not(:empty) {
  min-height: 44px;
  padding: 11px 13px;
}

.feedback--error {
  color: #7c2f22;
  background: #fff0ec;
  border: 1px solid #f3c7bc;
}

.feedback--success {
  color: #245d3e;
  background: #edf8ee;
  border: 1px solid #c8e3cd;
}

.error-action {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
}

.auth-footer {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e1e9e3;
  color: #687c73;
  font-size: 14px;
}

.notice {
  width: min(100%, 430px);
  padding: 12px;
  border-radius: 10px;
}

.notice--error {
  color: #7c2f22;
  background: #fff0ec;
}

@media (max-width: 780px) {
  .auth-shell {
    display: block;
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .welcome-panel {
    display: none;
  }

  .form-panel {
    display: block;
    min-height: 100dvh;
    padding: 24px max(20px, env(safe-area-inset-left)) 40px;
  }

  .mobile-brand {
    display: flex;
    margin-bottom: clamp(42px, 12vh, 90px);
  }

  .mobile-brand .brand-mark {
    width: 38px;
    height: 38px;
  }

  .auth-card {
    margin: 0 auto;
  }
}

@media (max-width: 420px) {
  .verification-actions,
  .auth-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .otp-input {
    font-size: 26px;
  }
}
