/* Loaded only by athlete entry routes; kept out of the global page bundle. */
.athlete-cabinet-page:has(.athlete-login-hero) {
  min-height: 0;
  height: auto;
  padding: 0;
  background: #eefaff;
}

.athlete-login-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(460px, 1.08fr);
  grid-template-areas:
    "brand motto"
    "card visual"
    "existing visual"
    "support visual"
    "band band";
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 76% 12%,
      rgba(255, 255, 255, 0.92),
      transparent 28%
    ),
    linear-gradient(145deg, #f9feff 0%, #e3f7fc 60%, #c8eaf4 100%);
  color: #07345f;
}

.adult-athlete-login-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 16px;
  min-height: 0;
  align-content: start;
  grid-template-areas:
    "brand motto"
    "visual visual"
    "card existing"
    "support support"
    "band band";
}

.adult-athlete-login-hero .athlete-login-visual {
  position: relative;
  min-height: 0;
  height: auto;
  aspect-ratio: 1832 / 1024;
  margin: 0 clamp(24px, 4vw, 64px);
  border-radius: 36px;
  background: linear-gradient(135deg, #f9feff 0%, #e2f6fc 40%, #ccecf6 100%);
  box-shadow: 0 28px 80px rgba(7, 52, 95, 0.22);
}

.adult-athlete-login-hero .athlete-login-visual picture {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.adult-athlete-login-hero .athlete-login-visual img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.adult-athlete-hero-title {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 43%;
  padding: clamp(30px, 5vw, 82px);
  color: #07345f;
  font:
    700 clamp(54px, 5.6vw, 96px)/0.94 Georgia,
    serif;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
  background: linear-gradient(
    90deg,
    rgba(239, 250, 255, 0.98) 0%,
    rgba(239, 250, 255, 0.88) 72%,
    rgba(239, 250, 255, 0) 100%
  );
}

.adult-athlete-hero-title::after {
  content: "";
  width: 82px;
  height: 4px;
  margin-top: 26px;
  border-radius: 4px;
  background: #d7a62e;
}

.adult-athlete-login-hero > .athlete-access-card {
  align-self: stretch;
  justify-self: stretch;
  min-width: 0;
  width: calc(100% - 72px);
  margin: 0 36px 28px;
  padding: 32px clamp(40px, 3vw, 48px);
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.97);
}

.adult-athlete-login-hero .athlete-access-card form,
.adult-athlete-login-hero .athlete-access-card label,
.adult-athlete-login-hero .athlete-access-card input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.adult-athlete-login-hero .athlete-access-card form {
  gap: 14px;
}

.adult-athlete-login-hero .athlete-login-lead {
  margin: 18px 0 12px;
}

.adult-athlete-login-hero .athlete-access-note {
  margin: 2px 0 4px;
}

.adult-athlete-login-hero .athlete-email-button,
.adult-athlete-login-hero .athlete-recovery-toggle {
  min-height: 50px;
}

.adult-athlete-login-hero .athlete-registered-entry-card {
  grid-area: existing;
  align-self: stretch;
  justify-self: center;
  width: min(760px, calc(100% - 72px));
  min-width: 0;
  margin: 0 auto 28px;
  overflow: hidden;
}

.adult-athlete-login-hero .athlete-registered-entry-card .athlete-email-button,
.adult-athlete-login-hero .athlete-registered-entry-card .athlete-recovery-toggle {
  width: auto;
  max-width: min(100%, 560px);
  padding-inline: clamp(18px, 2vw, 30px);
  white-space: normal;
  overflow-wrap: anywhere;
}

.athlete-login-hero > .athlete-support-card {
  grid-area: support !important;
}

.athlete-login-hero > .athlete-code-only-card {
  grid-area: card !important;
  grid-column: 1 / -1 !important;
  justify-self: center;
  margin-inline: auto;
}

.athlete-login-brand {
  grid-area: brand;
  padding: 24px clamp(28px, 5vw, 76px) 16px;
  z-index: 2;
}

.athlete-login-brand a {
  display: flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
  border-radius: 14px;
}

.athlete-login-brand a:focus-visible {
  outline: 3px solid #d7a62e;
  outline-offset: 6px;
}

.athlete-login-brand img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.athlete-login-brand div {
  display: grid;
  line-height: 1.05;
}

.athlete-login-brand strong {
  font:
    700 clamp(30px, 3vw, 54px)/1 Georgia,
    serif;
  letter-spacing: 0.08em;
}

.athlete-login-brand span {
  margin-top: 8px;
  color: #0b4f88;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.athlete-login-motto {
  grid-area: motto;
  align-self: center;
  display: grid;
  justify-self: end;
  padding: 24px clamp(34px, 5vw, 80px) 16px;
  z-index: 2;
  letter-spacing: 0.22em;
}

.athlete-login-motto::after {
  content: "";
  width: 66px;
  height: 3px;
  margin-top: 12px;
  background: #d7a62e;
}

.athlete-login-motto span {
  font-size: 13px;
}

.athlete-login-visual {
  grid-area: visual;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 34px 0 0 0;
  box-shadow: -18px 18px 60px rgba(7, 52, 95, 0.14);
}

.athlete-login-visual,
.athlete-login-visual picture {
  display: block;
  min-height: 680px;
  height: 100%;
}

.athlete-login-visual img {
  position: relative;
  top: 0;
  left: -105%;
  display: block;
  width: 205%;
  height: 108%;
  max-width: none;
  object-fit: cover;
  object-position: right top;
}

.athlete-login-hero > .athlete-access-card {
  grid-area: card;
  align-self: center;
  width: min(720px, calc(100% - 56px));
  max-width: none;
  margin: 28px 0 44px clamp(28px, 5vw, 76px);
  padding: clamp(30px, 4vw, 58px);
  z-index: 3;
  border: 1px solid rgba(159, 208, 229, 0.8);
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(7, 52, 95, 0.18);
}

.athlete-login-hero > .athlete-registered-entry-card {
  grid-area: existing !important;
}

.athlete-login-hero .athlete-access-card h1 {
  margin: 4px 0 0;
  color: #07345f;
  font:
    700 clamp(48px, 5vw, 78px)/0.98 Georgia,
    serif;
  letter-spacing: -0.035em;
}

.athlete-login-subtitle {
  margin: 14px 0 24px;
  color: #07579a;
  font:
    700 clamp(24px, 2.1vw, 34px)/1.15 Georgia,
    serif;
}

.athlete-login-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  counter-reset: athlete-step;
}

.athlete-login-steps li {
  counter-increment: athlete-step;
  display: grid;
  justify-items: center;
  gap: 9px;
  min-width: 0;
  text-align: center;
  color: #0a477d;
  font-size: 15px;
  line-height: 1.25;
}

.athlete-login-steps li > span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8faff, #cfeef8);
  color: #07579a;
  font-size: 22px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(96, 180, 215, 0.16);
}

.athlete-login-steps img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.athlete-login-steps strong::before {
  content: counter(athlete-step) ". ";
  color: #c9912e;
}

.athlete-login-hero .athlete-access-card form {
  gap: 14px;
  margin-top: 0;
}

.athlete-login-hero .athlete-access-card label {
  color: #07345f;
}

.athlete-login-hero .athlete-access-card input {
  min-width: 0;
  border-color: #8fcde4;
  background: #fff;
  color: #07345f;
  font-size: 18px;
}

.athlete-login-hero .athlete-access-card input:focus {
  border-color: #087caf;
  box-shadow: 0 0 0 4px rgba(19, 168, 176, 0.15);
}

.athlete-login-hero .athlete-teams-button {
  gap: 16px;
  min-height: 62px;
  background: linear-gradient(180deg, #23c1db 0%, #078cca 52%, #05679f 100%);
  box-shadow:
    0 13px 25px rgba(5, 103, 159, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-size: clamp(16px, 1.45vw, 21px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.athlete-teams-button b {
  font-size: 28px;
  transition: transform 0.25s ease;
}

.athlete-teams-button:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow:
    0 18px 32px rgba(5, 103, 159, 0.34),
    0 0 22px rgba(35, 193, 219, 0.2);
}

.athlete-teams-button:hover:not(:disabled) b {
  transform: translateX(5px);
}

.athlete-login-hero .athlete-access-card form button.athlete-recovery-toggle {
  min-height: 42px;
  padding: 5px 12px;
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  color: #07579a !important;
  text-decoration: underline;
  box-shadow: none !important;
}

.athlete-login-hero .athlete-recovery-form {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #cde5ee;
}

.athlete-login-hero .athlete-recovery-form a {
  color: #07579a;
  font-weight: 800;
}

.athlete-login-strength {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 24px 0 0;
  color: #b57f13;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-align: center;
}

.athlete-login-strength span {
  width: 62px;
  height: 2px;
  background: #d7a62e;
}

.athlete-login-band {
  grid-area: band;
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 18px 24px;
  z-index: 4;
  border-top: 3px solid #dda91f;
  background: linear-gradient(90deg, #06345f, #07558a);
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-align: center;
}

.athlete-login-band i {
  color: #f0be39;
  font-style: normal;
}

@media (min-width: 1281px) {
  .adult-athlete-login-hero > .athlete-access-card,
  .adult-athlete-login-hero > .athlete-registered-entry-card {
    align-self: start;
    height: auto;
    margin-bottom: 28px;
  }
}

/* Two cards fit side by side only on a genuinely wide desktop. */
@media (max-width: 1280px) {
  .adult-athlete-login-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "visual"
      "card"
      "existing"
      "support"
      "band";
  }

  .adult-athlete-login-hero > .athlete-access-card,
  .adult-athlete-login-hero > .athlete-registered-entry-card {
    grid-column: 1;
    width: min(760px, calc(100% - 48px));
    margin: 0 auto 24px;
  }
}

@media (max-width: 980px) {
  .athlete-login-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "visual"
      "card"
      "existing"
      "band";
  }

  .athlete-login-brand {
    padding: 20px 18px 14px;
  }

  .athlete-login-brand a {
    margin-inline: auto;
  }

  .athlete-login-motto {
    position: absolute;
    top: 142px;
    right: 22px;
    padding: 12px;
    color: #07345f;
    text-shadow: 0 1px 10px #fff;
  }

  .athlete-login-visual {
    min-height: 420px;
    height: 48vw;
    max-height: 560px;
    border-radius: 0;
  }

  .athlete-login-visual picture {
    min-height: 0;
    height: 100%;
  }

  .athlete-login-visual img {
    left: 0;
    width: 100%;
    height: 100%;
    object-position: center 7%;
  }

  .athlete-login-hero > .athlete-access-card {
    width: min(720px, calc(100% - 32px));
    margin: -26px auto 32px;
  }

  .adult-athlete-login-hero {
    grid-template-areas:
      "brand"
      "visual"
      "card"
      "existing"
      "support"
      "band";
  }

  .adult-athlete-login-hero .athlete-login-visual {
    min-height: 0;
    height: auto;
    margin: 0 18px;
    border-radius: 28px;
  }

  .adult-athlete-login-hero .athlete-login-visual img {
    left: 0;
    width: 100%;
    object-position: center;
  }

  .adult-athlete-hero-title {
    width: 43%;
    padding: 34px;
    font-size: clamp(46px, 7vw, 68px);
  }

  .adult-athlete-login-hero > .athlete-access-card {
    width: min(720px, calc(100% - 32px));
    margin: 0 auto 24px;
  }
}

@media (min-width: 721px) and (max-width: 1280px) {
  .adult-athlete-login-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    grid-template-areas:
      "brand motto"
      "visual visual"
      "card existing"
      "support support"
      "band band";
  }

  .adult-athlete-login-hero > .athlete-access-card,
  .adult-athlete-login-hero > .athlete-registered-entry-card {
    grid-column: auto;
    align-self: start;
    justify-self: stretch;
    width: calc(100% - 24px);
    height: auto;
    margin: 0 12px 24px;
    padding: clamp(22px, 2.4vw, 32px);
  }
}

@media (max-width: 540px) {
  .athlete-login-brand {
    padding-inline: 18px;
  }

  .athlete-login-brand a {
    gap: 10px;
    margin-inline: 0;
  }

  .athlete-login-brand img {
    width: 64px;
    height: 64px;
  }

  .athlete-login-brand strong {
    font-size: clamp(27px, 9vw, 39px);
  }

  .athlete-login-brand span {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .athlete-login-motto {
    top: 102px;
    right: 12px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .athlete-login-motto span {
    font-size: 10px;
  }

  .athlete-login-visual {
    min-height: 330px;
    height: 84vw;
    max-height: 390px;
  }

  .athlete-login-visual img {
    object-position: center top;
  }

  .athlete-login-hero > .athlete-access-card {
    width: calc(100% - 24px);
    margin-top: -18px;
    padding: 24px 18px;
    border-radius: 24px;
  }

  .adult-athlete-login-hero .athlete-login-visual {
    min-height: 440px;
    height: 118vw;
    max-height: 560px;
    aspect-ratio: auto;
    margin: 0 10px;
    border-radius: 22px;
  }

  .adult-athlete-login-hero .athlete-login-visual img {
    left: 0;
    width: 100%;
    object-position: 72% center;
  }

  .adult-athlete-login-hero .athlete-login-visual picture {
    width: 100%;
  }

  .adult-athlete-hero-title {
    top: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 20px;
    font-size: clamp(34px, 10vw, 48px);
    background: linear-gradient(
      0deg,
      rgba(239, 250, 255, 0.97) 0%,
      rgba(239, 250, 255, 0.82) 70%,
      rgba(239, 250, 255, 0) 100%
    );
  }

  .adult-athlete-hero-title::after {
    width: 54px;
    margin-top: 18px;
  }

  .adult-athlete-login-hero > .athlete-access-card {
    width: calc(100% - 20px);
    margin: 0 auto 18px;
  }

  .adult-athlete-login-hero > .athlete-entry-panel {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 20px);
    margin: 0 auto 20px;
    padding: 0;
    border-radius: 20px;
  }

  .adult-athlete-login-hero .athlete-entry-option {
    width: 100%;
    padding: 24px 18px 22px;
  }

  .adult-athlete-login-hero .athlete-entry-option + .athlete-entry-option {
    border-top: 1px solid #d9eaf2;
    border-left: 0;
  }

  .adult-athlete-login-hero .athlete-entry-option .athlete-login-lead {
    min-height: 0;
  }

  .adult-athlete-login-hero .athlete-entry-option input {
    min-height: 52px;
  }

  .adult-athlete-login-hero .athlete-entry-option .athlete-email-button {
    min-height: 50px;
    padding: 10px 14px;
  }

  .athlete-login-hero .athlete-access-card h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .athlete-login-subtitle {
    font-size: 24px;
  }

  .athlete-login-steps {
    gap: 5px;
  }

  .athlete-login-steps li {
    font-size: 12px;
  }

  .athlete-login-steps li > span {
    width: 68px;
    height: 68px;
  }

  .athlete-login-steps img {
    width: 42px;
    height: 42px;
  }

  .athlete-login-hero .athlete-teams-button {
    width: 100%;
    min-height: 60px;
    padding: 12px 14px;
    font-size: 16px;
  }

  .athlete-login-strength {
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.17em;
  }

  .athlete-login-strength span {
    width: 28px;
  }

  .athlete-login-band {
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 15px 10px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .athlete-teams-button,
  .athlete-teams-button b {
    transition: none;
  }

  .athlete-teams-button:hover:not(:disabled),
  .athlete-teams-button:hover:not(:disabled) b {
    transform: none;
  }
}

/* Approved child-and-parent cabinet composition. The artwork stays intact;
   live controls stay in real HTML below the decorative headers. */
.athlete-cabinet-load-state {
  width: min(1024px, calc(100% - 24px));
  box-sizing: border-box;
  margin: 16px auto;
  padding: 16px 20px;
  border: 1px solid #9edceb;
  border-radius: 14px;
  background: #effcff;
  color: #073d64;
  line-height: 1.5;
}
.athlete-cabinet-load-state p {
  margin: 0 0 12px;
}
.athlete-cabinet-load-state button {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid #1177b6;
  border-radius: 8px;
  background: #075da2;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.athlete-cabinet-load-state button:focus-visible {
  outline: 3px solid #f4bc28;
  outline-offset: 3px;
}
.child-media-consent-notice {
  margin: 14px auto 22px;
  padding: 14px 18px;
  border-left: 3px solid #0c83a9;
  border-radius: 8px;
  background: #ecf9fc;
  color: #073d64;
  line-height: 1.5;
}
.child-cabinet-entry {
  position: relative;
  width: min(1024px, calc(100% - 24px));
  margin: 12px auto 30px;
  overflow: hidden;
  border: 1px solid #9edceb;
  border-radius: 24px;
  background: #effcff;
  box-shadow: 0 22px 60px rgba(6, 79, 129, 0.14);
}
.child-cabinet-home-link {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #07527d;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(6, 79, 129, 0.14);
}
.child-cabinet-entry-art {
  display: block;
  width: 100%;
  height: auto;
}
.child-cabinet-id-form,
.child-cabinet-login-form,
.child-cabinet-recovery-button {
  position: absolute;
  z-index: 2;
  margin: 0;
}
.child-mobile-form-copy {
  display: none;
}
.child-cabinet-recovery-panel {
  display: contents;
}
.child-cabinet-id-form {
  top: 47.6%;
  left: 5.05%;
  width: 40.45%;
  display: grid;
  gap: 0.72vw;
}
.child-cabinet-login-form {
  top: 65.15%;
  left: 5.05%;
  width: 40.05%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25vw;
}
.child-cabinet-entry input,
.child-cabinet-entry select,
.child-cabinet-entry textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #79cce9;
  border-radius: clamp(8px, 1.3vw, 14px);
  background: rgba(255, 255, 255, 0.98);
  color: #073d82;
  font: inherit;
}
.child-cabinet-id-form input,
.child-cabinet-login-form input {
  height: clamp(35px, 5.05vw, 52px);
  padding: 0 clamp(10px, 1.8vw, 20px);
  font-size: clamp(12px, 1.6vw, 18px);
}
.child-cabinet-entry button {
  border: 1px solid #35c9e7;
  border-radius: clamp(10px, 1.6vw, 18px);
  background: linear-gradient(180deg, #28d2e7, #068cc7 58%, #0574b4);
  box-shadow:
    0 5px 0 #045d9b,
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.child-cabinet-entry button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.child-cabinet-entry button:focus-visible,
.child-cabinet-entry input:focus-visible,
.child-cabinet-entry select:focus-visible,
.child-cabinet-entry textarea:focus-visible {
  outline: 3px solid #f4bc28;
  outline-offset: 3px;
}
.child-cabinet-id-form button {
  min-height: clamp(35px, 4.75vw, 49px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: clamp(11px, 1.65vw, 18px);
}
.child-cabinet-login-form button {
  grid-column: 1 / -1;
  min-height: clamp(35px, 4.75vw, 49px);
  font-size: clamp(12px, 1.65vw, 18px);
}
.child-cabinet-recovery-button {
  position: absolute !important;
  top: 84.15% !important;
  left: 28.25%;
  width: 25.7%;
  min-height: clamp(34px, 4.8vw, 50px);
  font-size: clamp(11px, 1.45vw, 17px) !important;
}
.child-cabinet-dialogs {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 38px);
  border-top: 1px solid #9edceb;
  background: linear-gradient(145deg, #f5fdff, #e5f8fc);
}
.child-cabinet-dialogs form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid #9edceb;
  border-radius: 22px;
  background: #fff;
}
.child-cabinet-dialogs h2,
.child-cabinet-dialogs p,
.child-cabinet-dialogs form > button {
  grid-column: 1 / -1;
}
.child-cabinet-dialogs h2 {
  margin: 0;
  color: #073d82;
  font-family: Georgia, serif;
}
.child-cabinet-dialogs label {
  display: grid;
  gap: 6px;
  color: #073d82;
  font-weight: 800;
}
.child-cabinet-dialogs input,
.child-cabinet-dialogs select,
.child-cabinet-dialogs textarea {
  min-height: 48px;
  padding: 12px;
}
.child-cabinet-dialogs textarea {
  min-height: 110px;
  resize: vertical;
}
.child-cabinet-dialogs form > button {
  min-height: 50px;
}

@media (max-width: 900px) {
  .child-cabinet-home-link {
    position: relative;
    display: inline-flex;
    top: auto;
    right: auto;
    margin: 12px 16px 0;
  }
  .child-cabinet-entry {
    width: calc(100% - 16px);
    margin-top: 8px;
    border-radius: 18px;
    overflow: hidden;
  }
  .child-cabinet-entry-art {
    height: auto;
    border-radius: 18px 18px 0 0;
  }
  .child-cabinet-id-form,
  .child-cabinet-login-form {
    position: relative;
    inset: auto;
    width: auto;
    margin: 16px;
    padding: 18px;
    border: 1px solid #91d9e9;
    border-radius: 20px;
    background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(235, 250, 255, 0.98)
    );
    box-shadow: 0 10px 24px rgba(6, 79, 129, 0.1);
  }
  .child-cabinet-id-form,
  .child-cabinet-login-form {
    gap: 12px;
  }
  .child-cabinet-login-form {
    grid-template-columns: 1fr;
  }
  .child-mobile-form-copy {
    display: grid;
    gap: 5px;
    grid-column: 1 / -1;
    color: #07527d;
  }
  .child-mobile-form-copy strong {
    color: #063f72;
    font:
      800 1.35rem/1.15 Georgia,
      serif;
  }
  .child-mobile-form-copy span {
    font-size: 0.95rem;
    line-height: 1.45;
  }
  .child-cabinet-id-form input,
  .child-cabinet-login-form input {
    height: 52px;
    font-size: 1rem;
  }
  .child-cabinet-id-form button,
  .child-cabinet-login-form button {
    min-height: 52px;
    font-size: 1rem;
  }
  .child-cabinet-recovery-panel {
    display: grid;
    gap: 12px;
    margin: 16px;
    padding: 18px;
    border: 1px solid #91d9e9;
    border-radius: 20px;
    background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(239, 255, 244, 0.98)
    );
    box-shadow: 0 10px 24px rgba(6, 79, 129, 0.1);
  }
  .child-cabinet-recovery-button {
    position: relative !important;
    inset: auto !important;
    width: 100%;
    min-height: 52px !important;
    font-size: 1rem !important;
  }
  .child-cabinet-dialogs {
    padding: 12px;
  }
  .child-cabinet-dialogs form {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .child-cabinet-dialogs h2,
  .child-cabinet-dialogs p,
  .child-cabinet-dialogs form > button {
    grid-column: auto;
  }
}

/* Child/parent cabinet v2: approved headers are decorative, controls stay below. */
.child-athlete-cabinet-page .child-cabinet-entry {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 32px));
  margin: clamp(8px, 1.8vw, 20px) auto clamp(24px, 4vw, 56px);
  display: grid;
  gap: clamp(18px, 3vw, 30px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.child-athlete-cabinet-page .child-cabinet-home-link {
  position: static !important;
  box-sizing: border-box;
  width: min(980px, 100%);
  margin: 0 auto;
  justify-self: center;
  display: flex;
  align-items: center;
  min-height: 0;
  inset: auto !important;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #075a92;
  font-weight: 900;
  text-decoration: none;
}
.child-athlete-cabinet-page .child-cabinet-home-link::before,
.child-athlete-cabinet-page .child-cabinet-home-link::after {
  content: none !important;
  display: none !important;
}
.child-athlete-cabinet-page .child-cabinet-entry-scenario {
  box-sizing: border-box;
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  gap: clamp(8px, 1.2vw, 12px);
}
.child-athlete-cabinet-page .child-cabinet-scenario-header {
  position: static !important;
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0;
  border: 1px solid #8dd8ea;
  border-radius: clamp(14px, 2.4vw, 24px);
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(5, 89, 132, 0.1);
  transform: none !important;
}
.child-athlete-cabinet-page
  :is(
    .child-cabinet-id-form,
    .child-cabinet-login-form,
    .child-cabinet-recovery-panel,
    .child-cabinet-dialogs
  ) {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr !important;
  justify-items: start;
  gap: clamp(10px, 1.4vw, 14px);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #8dd8ea;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(5, 89, 132, 0.1);
  overflow: hidden;
}
.child-athlete-cabinet-page .child-cabinet-recovery-panel {
  display: grid !important;
}
.child-athlete-cabinet-page .child-mobile-form-copy {
  display: grid;
  gap: 6px;
  max-width: 560px;
}
.child-athlete-cabinet-page .child-mobile-form-copy strong {
  color: #063f72;
  font:
    800 clamp(1.35rem, 2.6vw, 2.1rem)/1.1 Georgia,
    serif;
}
.child-athlete-cabinet-page .child-mobile-form-copy span {
  color: #17658c;
  line-height: 1.5;
}
.child-athlete-cabinet-page
  :is(.child-cabinet-id-form, .child-cabinet-login-form)
  input {
  box-sizing: border-box;
  width: min(440px, 100%);
  height: auto;
  min-height: 54px;
  padding: 12px 16px;
  border: 2px solid #65c8e0;
  border-radius: 16px;
  background: #fff;
  color: #07345f;
  font: inherit;
}
.child-athlete-cabinet-page
  :is(.child-cabinet-id-form, .child-cabinet-login-form)
  button,
.child-athlete-cabinet-page .child-cabinet-recovery-button,
.child-athlete-cabinet-page .child-cabinet-dialogs button {
  position: static !important;
  inset: auto !important;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  min-height: 54px;
  padding: 13px 20px;
  border: 1px solid rgba(5, 118, 160, 0.36) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #57d8ec 0%, #18afd0 100%) !important;
  box-shadow: 0 10px 22px rgba(8, 112, 160, 0.18) !important;
  color: #fff;
  font: inherit;
  font-weight: 900;
  line-height: 1.15;
  text-shadow: none;
  transform: none;
  cursor: pointer;
}
.child-athlete-cabinet-page
  :is(.child-cabinet-id-form, .child-cabinet-login-form)
  button:hover:not(:disabled),
.child-athlete-cabinet-page .child-cabinet-recovery-button:hover,
.child-athlete-cabinet-page .child-cabinet-dialogs button:hover {
  box-shadow: 0 12px 24px rgba(8, 112, 160, 0.22) !important;
  filter: saturate(1.04);
  transform: translateY(-1px);
}
.child-athlete-cabinet-page .child-cabinet-recovery-button {
  justify-self: start;
  width: fit-content;
}
body:has(.child-athlete-cabinet-page) .error-report-widget {
  left: max(12px, env(safe-area-inset-left)) !important;
  right: auto !important;
  bottom: max(12px, env(safe-area-inset-bottom)) !important;
}

@media (min-width: 860px) {
  .child-athlete-cabinet-page
    :is(.child-cabinet-id-form, .child-cabinet-login-form) {
    grid-template-columns: minmax(260px, 420px) max-content !important;
    align-items: center;
    column-gap: 16px;
    row-gap: 12px;
  }
  .child-athlete-cabinet-page
    :is(.child-cabinet-id-form, .child-cabinet-login-form)
    .child-mobile-form-copy {
    grid-column: 1 / -1;
  }
  .child-athlete-cabinet-page
    :is(.child-cabinet-id-form, .child-cabinet-login-form)
    input {
    grid-column: 1;
    width: 100%;
  }
  .child-athlete-cabinet-page
    :is(.child-cabinet-id-form, .child-cabinet-login-form)
    button {
    grid-column: 2;
    justify-self: start;
    min-width: min(100%, 250px);
    height: 54px;
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .child-athlete-cabinet-page .child-cabinet-entry {
    width: min(100% - 18px, 680px);
    gap: 22px;
    padding-bottom: 88px;
  }
  .child-athlete-cabinet-page .child-cabinet-entry-scenario {
    gap: 10px;
  }
  .child-athlete-cabinet-page .child-cabinet-scenario-header {
    border-radius: 16px;
  }
  .child-athlete-cabinet-page
    :is(
      .child-cabinet-id-form,
      .child-cabinet-login-form,
      .child-cabinet-recovery-panel,
      .child-cabinet-dialogs
    ) {
    padding: 16px;
    border-radius: 18px;
  }
  .child-athlete-cabinet-page
    :is(.child-cabinet-id-form, .child-cabinet-login-form) {
    grid-template-columns: 1fr;
  }
  .child-athlete-cabinet-page
    :is(.child-cabinet-id-form, .child-cabinet-login-form)
    input {
    width: 100%;
  }
  .child-athlete-cabinet-page
    :is(.child-cabinet-id-form, .child-cabinet-login-form)
    button,
  .child-athlete-cabinet-page .child-cabinet-recovery-button {
    width: 100%;
  }
}

/* Final adult entry geometry. Keep this last so legacy card rules cannot
   restore the full-screen card height. */
.adult-athlete-login-hero {
  min-height: 0 !important;
  height: auto !important;
  align-content: start !important;
  align-items: start !important;
  padding-bottom: 0 !important;
}

/* The registration flow is the next section, not a continuation of the blue
   login scene. Give it its own content-sized surface so the blue background
   visibly ends after the final card margin. */
.athlete-cabinet-page:has(.adult-athlete-login-hero)
  > .sports-registration-page {
  min-height: 0 !important;
  padding-top: 0 !important;
  background: #ffffff !important;
}

.adult-athlete-login-hero > .athlete-access-card {
  min-height: 0 !important;
  height: auto !important;
  align-self: start !important;
  flex: 0 0 auto !important;
  padding-bottom: 28px !important;
}

@media (min-width: 721px) {
  .adult-athlete-login-hero > .athlete-access-card {
    padding: 32px clamp(40px, 3vw, 48px) !important;
  }
}

@media (max-width: 720px) {
  .adult-athlete-login-hero > .athlete-access-card {
    align-self: start !important;
  }
}

/* Version 1603: e-mail is a progressive step. The closed cards contain no
   label/input row or reserved form height. */
.adult-athlete-login-hero .athlete-progressive-email-form {
  display: grid;
  gap: 14px;
  width: 100%;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #d6e7ed;
}

.adult-athlete-login-hero .athlete-progressive-email-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.adult-athlete-login-hero .athlete-progressive-email-cancel {
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid #9bbdca;
  border-radius: 12px;
  background: #fff;
  color: #075278;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.adult-athlete-login-hero
  .athlete-progressive-email-cancel:focus-visible {
  outline: 3px solid #d49b20;
  outline-offset: 2px;
}

.adult-athlete-login-hero
  > .athlete-access-card:not(:has(.athlete-progressive-email-form)) {
  padding-bottom: 28px !important;
}

@media (max-width: 720px) {
  .adult-athlete-login-hero .athlete-progressive-email-actions,
  .adult-athlete-login-hero .athlete-progressive-email-actions > button {
    width: 100% !important;
  }
}

/* Version 1605: canonical compact veteran choice panel. */
.adult-athlete-login-hero > .athlete-entry-panel {
  grid-area: card;
  grid-column: 1 / -1 !important;
  align-self: start !important;
  justify-self: stretch;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: calc(100% - 72px) !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 36px 28px !important;
  padding: 0 !important;
  overflow: hidden;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 14px 38px rgba(7, 52, 95, 0.12);
}

.adult-athlete-login-hero .athlete-entry-option {
  grid-area: auto !important;
  justify-self: stretch !important;
  display: flex;
  flex-direction: column;
  align-self: start;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 32px clamp(32px, 3vw, 48px) 28px;
  box-sizing: border-box;
  background: transparent;
}

.adult-athlete-login-hero .athlete-entry-option + .athlete-entry-option {
  border-left: 1px solid #d9eaf2;
}

.adult-athlete-login-hero .athlete-entry-option .athlete-login-subtitle {
  margin: 0 0 18px;
}

.adult-athlete-login-hero .athlete-entry-option .athlete-login-lead {
  min-height: 3.2em;
  margin: 0 0 16px;
}

.adult-athlete-login-hero .athlete-entry-option form {
  display: grid;
  gap: 16px;
  width: 100%;
  margin: 0;
}

.adult-athlete-login-hero .athlete-entry-option label,
.adult-athlete-login-hero .athlete-entry-option input,
.adult-athlete-login-hero .athlete-entry-option .athlete-email-button {
  width: 100%;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
}

.adult-athlete-login-hero .athlete-entry-option input {
  min-height: 58px;
}

.adult-athlete-login-hero .athlete-entry-option .athlete-email-button {
  min-height: 54px;
  padding: 12px 20px;
}

.adult-athlete-login-hero .athlete-entry-option .athlete-recovery-toggle {
  align-self: flex-start;
  width: auto;
  min-height: 0;
  margin-top: 8px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #0872b9;
  text-decoration: underline;
  box-shadow: none;
}

.adult-athlete-login-hero
  .athlete-entry-option
  .athlete-progressive-email-form {
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
}

@media (max-width: 720px) {
  .adult-athlete-login-hero > .athlete-entry-panel {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 20px) !important;
    margin: 0 10px 20px !important;
  }

  .adult-athlete-login-hero .athlete-entry-option + .athlete-entry-option {
    border-top: 1px solid #d9eaf2;
    border-left: 0;
  }

  .adult-athlete-login-hero .athlete-entry-option {
    width: 100% !important;
    padding: 24px 18px 22px;
  }

  .adult-athlete-login-hero .athlete-entry-option .athlete-login-lead {
    min-height: 0;
  }

  .adult-athlete-login-hero .athlete-entry-option input {
    min-height: 52px;
  }

  .adult-athlete-login-hero .athlete-entry-option .athlete-email-button {
    min-height: 50px;
    padding: 10px 14px;
  }
}

/* Parent OTP stays inside its existing-user card without replacing either entry. */
.child-athlete-cabinet-page .child-cabinet-entry-scenario .child-cabinet-inline-code {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(12px, 2vw, 20px);
}
.child-athlete-cabinet-page .child-cabinet-inline-code .child-cabinet-code-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}
.child-athlete-cabinet-page .child-cabinet-inline-code .child-cabinet-code-content,
.child-athlete-cabinet-page .child-cabinet-inline-code .child-cabinet-code-help {
  box-sizing: border-box;
  min-width: 0;
  padding: clamp(14px, 2vw, 22px);
  overflow-wrap: anywhere;
}
.child-athlete-cabinet-page .child-cabinet-inline-code h1 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.child-athlete-cabinet-page .child-cabinet-inline-code .child-cabinet-code-help strong {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}
.child-athlete-cabinet-page .child-cabinet-inline-code .child-cabinet-code-banner {
  margin: 0 0 14px;
}

/* Compact controls belong only to the public parent entry, not cabinet menus. */
#child-parent-entry :is(
  .child-cabinet-code-content > form > button,
  .child-cabinet-code-actions > button,
  .child-cabinet-id-form button,
  .child-cabinet-login-form button,
  .child-cabinet-recovery-link,
  .child-cabinet-mail-sent-actions button,
  .child-cabinet-dialogs > form > button,
  .child-cabinet-status-panel > button
) {
  position: static !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  justify-self: start;
  align-self: start;
  flex: 0 1 auto;
  gap: 8px;
  width: fit-content !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 8px 14px !important;
  box-sizing: border-box;
  border: 1px solid #c7dfd3 !important;
  border-radius: 10px !important;
  background: #f7fcf9 !important;
  color: #205b43 !important;
  font: 700 14px/1.35 Arial, sans-serif !important;
  text-align: center;
  text-decoration: none;
  text-shadow: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 2px rgba(16, 68, 45, .06) !important;
  filter: none !important;
  transform: none !important;
  transition: background-color .15s ease, border-color .15s ease;
}
#child-parent-entry :is(
  .child-cabinet-code-content > form > button,
  .child-cabinet-code-actions > button,
  .child-cabinet-id-form button,
  .child-cabinet-login-form button,
  .child-cabinet-recovery-link,
  .child-cabinet-mail-sent-actions button,
  .child-cabinet-dialogs > form > button,
  .child-cabinet-status-panel > button
)::before,
#child-parent-entry :is(
  .child-cabinet-code-content > form > button,
  .child-cabinet-code-actions > button,
  .child-cabinet-id-form button,
  .child-cabinet-login-form button,
  .child-cabinet-recovery-link,
  .child-cabinet-mail-sent-actions button,
  .child-cabinet-dialogs > form > button,
  .child-cabinet-status-panel > button
)::after {
  content: none !important;
}
#child-parent-entry :is(
  .child-cabinet-code-content > form > button:not([type]),
  .child-cabinet-id-form > button:not([type]),
  .child-cabinet-login-form > button:not([type]),
  .child-cabinet-dialogs > form > button:not([type])
) {
  border-color: #157f3a !important;
  background: #157f3a !important;
  color: #fff !important;
}
#child-parent-entry :is(
  .child-cabinet-code-content > form > button,
  .child-cabinet-code-actions > button,
  .child-cabinet-id-form button,
  .child-cabinet-login-form button,
  .child-cabinet-recovery-link,
  .child-cabinet-mail-sent-actions button,
  .child-cabinet-dialogs > form > button,
  .child-cabinet-status-panel > button
):hover:not(:disabled) {
  border-color: #84b99b !important;
  background: #eaf5ee !important;
}
#child-parent-entry :is(
  .child-cabinet-code-content > form > button:not([type]),
  .child-cabinet-id-form > button:not([type]),
  .child-cabinet-login-form > button:not([type]),
  .child-cabinet-dialogs > form > button:not([type])
):hover:not(:disabled) {
  border-color: #10672f !important;
  background: #10672f !important;
}
#child-parent-entry :is(
  .child-cabinet-code-content > form > button,
  .child-cabinet-code-actions > button,
  .child-cabinet-id-form button,
  .child-cabinet-login-form button,
  .child-cabinet-recovery-link,
  .child-cabinet-mail-sent-actions button,
  .child-cabinet-dialogs > form > button,
  .child-cabinet-status-panel > button
):focus-visible {
  outline: 3px solid #0876a5 !important;
  outline-offset: 3px;
}
#child-parent-entry :is(
  .child-cabinet-code-content > form > button,
  .child-cabinet-code-actions > button,
  .child-cabinet-id-form button,
  .child-cabinet-login-form button,
  .child-cabinet-recovery-link,
  .child-cabinet-mail-sent-actions button,
  .child-cabinet-dialogs > form > button,
  .child-cabinet-status-panel > button
):disabled {
  opacity: .6;
  cursor: default;
}
#child-parent-entry .child-cabinet-code-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
@media (max-width: 720px) {
  #child-parent-entry :is(
    .child-cabinet-code-content > form > button,
  .child-cabinet-code-actions > button,
    .child-cabinet-id-form button,
    .child-cabinet-login-form button,
    .child-cabinet-recovery-link,
    .child-cabinet-mail-sent-actions button,
    .child-cabinet-dialogs > form > button,
    .child-cabinet-status-panel > button
  ) {
    min-height: 44px !important;
  }
}
