/* RS EDU Academy · authenticated entry and member state */

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

.academy-entry-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 12%, rgba(131,255,163,.22), transparent 28%),
    radial-gradient(circle at 90% 22%, rgba(255,226,94,.2), transparent 24%),
    #f5f3ed;
}

.entry-main { padding: clamp(28px, 5vw, 72px) 0 80px; }

.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}

.entry-intro,
.entry-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(7,28,67,.13);
  background: rgba(255,255,255,.78);
  box-shadow: 0 24px 80px rgba(7,28,67,.1);
}

.entry-intro { padding: clamp(34px, 6vw, 78px); }
.entry-intro::after {
  content: 'ACCESS';
  position: absolute;
  right: -16px;
  bottom: -24px;
  color: rgba(7,28,67,.055);
  font-size: clamp(78px, 14vw, 190px);
  font-weight: 950;
  letter-spacing: -.09em;
  line-height: .8;
  pointer-events: none;
}

.entry-kicker,
.entry-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #087d59;
}

.entry-kicker::before,
.entry-card-kicker::before {
  content: '';
  width: 26px;
  height: 3px;
  background: currentColor;
}

.entry-intro h1 {
  max-width: 740px;
  margin: 24px 0 20px;
  color: #071c43;
  font-size: clamp(50px, 7vw, 104px);
  font-weight: 950;
  line-height: .9;
  letter-spacing: -.075em;
}

.entry-intro h1 span { display: block; color: #07985b; }
.entry-intro > p { max-width: 670px; color: #425169; font-size: clamp(17px, 2vw, 22px); line-height: 1.65; }

.entry-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.entry-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  color: #162c51;
  font-size: 15px;
  font-weight: 750;
}

.entry-steps strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: #071c43;
  font-size: 13px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 54px);
  background: #071c43;
  color: #fff;
}

.entry-card h2 { margin: 18px 0 8px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.055em; line-height: 1; }
.entry-card > p { margin: 0 0 28px; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.65; }
.entry-card-kicker { color: #83ffa3; }

.entry-form { display: grid; gap: 18px; }
.entry-field { display: grid; gap: 8px; }
.entry-field label { font-size: 12px; font-weight: 850; letter-spacing: .04em; color: rgba(255,255,255,.82); }
.entry-field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 2px;
  padding: 0 16px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font: inherit;
  font-size: 16px;
  outline: none;
}
.entry-field input:focus { border-color: #83ffa3; box-shadow: 0 0 0 3px rgba(131,255,163,.13); }
.entry-field input[name='code'] { font-size: 24px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }

.entry-submit {
  min-height: 56px;
  border: 0;
  border-radius: 2px;
  padding: 0 22px;
  color: #071c43;
  background: #83ffa3;
  font: inherit;
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
}
.entry-submit:hover { transform: translateY(-1px); }
.entry-submit:disabled { opacity: .62; cursor: progress; transform: none; }

.enter-status { min-height: 22px; margin: 2px 0 0; color: rgba(255,255,255,.66); font-size: 13px; line-height: 1.5; }
.enter-status.is-error { color: #ffadad; }
.enter-status.is-success { color: #83ffa3; }
.enter-status.is-warning { color: #ffe25e; }

.entry-help {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.62);
  font-size: 12px;
  line-height: 1.65;
}
.entry-help a { color: #fff; font-weight: 850; }
#entryResume { display: inline-flex; margin-top: 14px; color: #83ffa3; font-size: 13px; font-weight: 900; }

.academy-member-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding-left: 14px;
  border-left: 1px solid rgba(7,28,67,.12);
  color: #071c43;
  font-size: 11px;
  white-space: nowrap;
}
.academy-member-bar strong { font-weight: 950; }
.academy-member-bar button {
  border: 1px solid rgba(7,28,67,.16);
  border-radius: 999px;
  padding: 7px 10px;
  color: #071c43;
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.access-setup-state {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin: 48px auto;
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid rgba(7,28,67,.13);
  background: #fff;
  color: #071c43;
  box-shadow: 0 24px 70px rgba(7,28,67,.08);
}
.access-setup-state > span { color: #07985b; font-size: 11px; font-weight: 950; letter-spacing: .15em; }
.access-setup-state > strong { font-size: clamp(28px, 4vw, 46px); line-height: 1.05; letter-spacing: -.055em; }
.access-setup-state p { margin: 0; color: #536078; line-height: 1.7; }
.access-setup-state code { padding: 2px 6px; background: #eef3f8; color: #071c43; }
.access-setup-state a { color: #071c43; font-weight: 900; }

@media (max-width: 980px) {
  .entry-layout { grid-template-columns: 1fr; }
  .entry-intro { min-height: 520px; }
  .academy-member-bar span { display: none; }
}

@media (max-width: 760px) {
  .entry-main { padding-top: 16px; }
  .entry-intro { min-height: 440px; padding: 34px 24px; }
  .entry-card { padding: 34px 24px; }
  .entry-intro h1 { font-size: 54px; }
  .entry-intro::after { font-size: 92px; right: -6px; }
  .entry-steps li { grid-template-columns: 36px minmax(0, 1fr); }
  .entry-steps strong { width: 36px; height: 36px; }
  .academy-member-bar { padding-left: 8px; border-left: 0; }
}

@media (max-width: 500px) {
  .academy-member-bar {
    width: 38px;
    min-width: 38px;
    justify-content: center;
    gap: 0;
    padding-left: 0;
  }
  .academy-member-bar button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    font-size: 0;
  }
  .academy-member-bar button::before {
    content: "↪";
    font-size: 14px;
  }
}
