/* ==========================================================
   teachMe Online - Student auth screens
   ========================================================== */

.student-auth-page {
  min-height: calc(100vh - 92px);
  display: grid;
  place-items: center;
  padding: 3.2rem 1.5rem 4rem;
  background:
    radial-gradient(circle at 18% 12%, rgba(228, 243, 235, .62), transparent 28rem),
    radial-gradient(circle at 82% 24%, rgba(244, 196, 108, .18), transparent 24rem),
    linear-gradient(180deg, #fffdf8 0%, var(--paper) 58%, #fbf5ea 100%);
}

.student-auth-card {
  width: min(100%, 520px);
  border: 1px solid rgba(216, 204, 186, .84);
  border-radius: 18px;
  background: rgba(255, 252, 246, .92);
  box-shadow: 0 20px 54px rgba(57, 43, 22, .1);
  padding: 1.5rem;
}

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

.student-auth-kicker {
  margin-bottom: .35rem;
  color: var(--green);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.student-auth-card h1 {
  margin-bottom: .4rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.student-auth-card > p {
  color: var(--ink-soft);
  font-size: .94rem;
  line-height: 1.7;
}

.student-auth-form {
  display: grid;
  gap: .9rem;
  margin-top: 1.25rem;
}

.student-auth-field {
  display: grid;
  gap: .38rem;
}

.student-auth-field label,
.course-choice strong {
  color: var(--ink);
  font-size: .86rem;
  font-weight: 700;
}

.student-auth-field input,
.student-auth-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(216, 204, 186, .92);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  font: inherit;
  padding: .75rem .9rem;
}

.student-auth-field input:focus,
.student-auth-field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 110, 86, .13);
  outline: 0;
}

.student-auth-check {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--ink-soft);
  font-size: .86rem;
}

.student-auth-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--green);
}

.student-auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: .3rem;
}

.student-auth-actions a,
.student-auth-footer a {
  color: var(--green-deep);
  font-weight: 700;
  text-decoration: none;
}

.student-auth-actions a:hover,
.student-auth-footer a:hover {
  text-decoration: underline;
}

.student-auth-submit {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  font-weight: 750;
  padding: .78rem 1.2rem;
  box-shadow: 0 10px 24px rgba(15, 110, 86, .18);
}

.student-auth-submit:hover {
  background: var(--green-deep);
}

.student-auth-notice {
  margin-top: 1rem;
  border: 1px solid rgba(15, 110, 86, .18);
  border-radius: 12px;
  background: rgba(228, 243, 235, .7);
  color: var(--green-deep);
  font-size: .88rem;
  font-weight: 650;
  padding: .8rem .95rem;
}

.student-auth-notice--error {
  border-color: rgba(193, 96, 56, .26);
  background: rgba(250, 232, 220, .78);
  color: #8d3f23;
}

.student-auth-footer {
  margin-top: 1.15rem;
  color: var(--ink-soft);
  font-size: .88rem;
}

.course-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 1.15rem;
}

.course-choice {
  position: relative;
  display: grid;
  gap: .35rem;
  min-height: 132px;
  border: 1px solid rgba(216, 204, 186, .92);
  border-radius: 14px;
  background: rgba(255, 255, 255, .48);
  cursor: pointer;
  padding: .9rem;
}

.course-choice input {
  position: absolute;
  inset: .85rem .85rem auto auto;
  accent-color: var(--green);
}

.course-choice span {
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.5;
}

.course-choice:has(input:checked) {
  border-color: rgba(15, 110, 86, .48);
  background: rgba(228, 243, 235, .7);
  box-shadow: 0 10px 24px rgba(15, 110, 86, .1);
}

@media (max-width: 760px) {
  .student-auth-page {
    padding-inline: 1rem;
  }

  .course-choice-grid {
    grid-template-columns: 1fr;
  }
}
