:root {
  --teacher-page-bg: #f3f6fa;
  --teacher-panel: #ffffff;
  --teacher-navy: #1f2937;
  --teacher-blue: #0065b3;
  --teacher-blue-dark: #004f8c;
  --teacher-blue-soft: #eaf4fc;
  --teacher-border: #d9e2ec;
  --teacher-text-soft: #52606d;
  --teacher-danger: #a61b1b;
  --teacher-success: #2e7d32;
  --teacher-warning-bg: #fff8df;
  --teacher-warning-border: #e7bd43;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--teacher-page-bg);
  color: var(--teacher-navy);
  font-family: Roboto, sans-serif;
}

.teacher-auth-shell {
  width: min(1000px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  background: var(--teacher-panel);
  border: 1px solid var(--teacher-border);
  box-shadow: 0 20px 55px rgba(31, 41, 55, 0.1);
}

.teacher-auth-context {
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 38px;
  background: #0065b3;
  color: #ffffff;
}

.teacher-auth-kicker,
.teacher-auth-eyebrow {
  margin: 0 0 12px;
  padding: 5px 8px;
  border-radius: 50px;
  color: #1e1e1e;
  background-color: #fedb00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-flex;
}

.teacher-auth-context h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.05;
}

.teacher-auth-summary {
  margin: 20px 0 0;
  color: #d8e2ec;
  font-size: 17px;
  line-height: 1.65;
}

.teacher-auth-illustration {
  width: clamp(132px, 38%, 162px);
  height: auto;
  display: block;
  align-self: center;
  border-radius: 50%;
}

/* The supplied standalone SVG owns its transparency and white eye openings. */
.student-auth-page .student-signup-logo {
  border-radius: 0;
  clip-path: none;
  background: transparent;
}

.student-auth-feature-icons {
  width: 220px;
  height: 220px;
  position: relative;
  align-self: center;
}

.student-auth-feature {
  width: 62px;
  height: 62px;
  position: absolute;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.student-auth-feature:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.student-auth-feature:nth-child(2) {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.student-auth-feature:nth-child(3) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.student-auth-feature:nth-child(4) {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.student-auth-feature-icon {
  width: 62px;
  height: 62px;
  display: block;
}

.student-auth-feature-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.teacher-auth-security {
  padding: 18px;
  background: rgb(60, 60, 60);
  border-left: 4px solid #fedb00;
}

.teacher-auth-security strong {
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
}

.teacher-auth-security p {
  margin: 0;
  color: #d8e2ec;
  line-height: 1.5;
}

.teacher-approval-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.teacher-approval-steps li {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgb(52, 52, 52);
  color: #edf5fb;
  border-left: 5px solid #fedb00;
  font-size: 14px;
  font-weight: 700;
}

.teacher-approval-steps span {
  width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: #fedb00;
  color: #1e1e1e;
  font-weight: 700;
}

/* Match payment/payment.css's order details, feature rows, and footer.
   Opt in only on the two sign-in pages and student registration. */
.auth-summary-card {
  padding: 18px;
  background: #3c3c3c;
  border-left: 4px solid #fedb00;
}

.teacher-approval-steps.auth-summary-card {
  gap: 8px;
}

.auth-summary-card > strong,
.teacher-approval-steps.auth-summary-card > li {
  position: relative;
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0 0 0 18px;
  border: 0;
  background: transparent;
  color: #edf5fb;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.auth-summary-card > strong::before,
.teacher-approval-steps.auth-summary-card > li::before {
  content: "";
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 7px;
  height: 7px;
  background: #fedb00;
}

.teacher-auth-security.auth-summary-card > p {
  margin: 15px 0 0;
  padding-top: 14px;
  border-top: 1px solid #666666;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: normal;
}

.teacher-auth-form-panel {
  padding: 42px;
  align-self: center;
}

.teacher-auth-form-panel h2 {
  margin: 0;
  font-size: 30px;
}

.teacher-auth-subtitle {
  margin: 10px 0 24px;
  color: var(--teacher-text-soft);
  line-height: 1.55;
}

.teacher-auth-form {
  display: grid;
  gap: 15px;
}

.teacher-auth-field {
  display: grid;
  gap: 7px;
}

.teacher-auth-field label {
  color: #1e1e1e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

.teacher-auth-field input,
.teacher-auth-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c2c2c2;
  background: #ffffff;
  color: var(--teacher-navy);
  padding: 10px 12px;
  font: inherit;
  outline: none;
}

.teacher-auth-field input:focus,
.teacher-auth-field select:focus {
  border-color: #fedb00;
  box-shadow: 0 0 0 3px #fedb00;
}

.teacher-auth-help {
  margin: 0;
  color: var(--teacher-text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.teacher-auth-password-wrap {
  position: relative;
}

.teacher-auth-password-wrap input {
  padding-right: 48px;
}

.teacher-auth-password-toggle {
  width: 36px;
  height: 36px;
  position: absolute;
  top: 50%;
  right: 5px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teacher-blue-dark);
  cursor: pointer;
  transform: translateY(-50%);
}

.teacher-auth-password-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.teacher-auth-password-toggle .eye-off {
  display: none;
}

.teacher-auth-password-toggle[aria-pressed="true"] .eye-on {
  display: none;
}

.teacher-auth-password-toggle[aria-pressed="true"] .eye-off {
  display: block;
}

.teacher-auth-password-toggle:focus-visible {
  outline: 2px solid var(--teacher-blue);
  outline-offset: 1px;
}

.teacher-auth-submit {
  min-height: 46px;
  margin-top: 3px;
  border: none;
  background: #fedb00;
  color: #1e1e1e;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.teacher-auth-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.teacher-auth-status {
  min-height: 22px;
  margin: 0;
  color: var(--teacher-danger);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.teacher-auth-status.is-success {
  color: var(--teacher-success);
}

.teacher-auth-status.is-warning {
  padding: 11px 12px;
  background: var(--teacher-warning-bg);
  border-left: 4px solid var(--teacher-warning-border);
  color: #6e5200;
}

.teacher-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
}

.teacher-auth-links a {
  color: var(--teacher-blue-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.teacher-auth-links a:hover,
.teacher-auth-links a:focus-visible {
  text-decoration: underline;
}

.teacher-auth-links-context {
  margin-top: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.teacher-auth-links-context a {
  color: #ffffff;
}

/* Override the legacy circular badge sizing without changing account forms. */
body .auth-signin-brand {
  margin-top: 28px;
  background: #ffffff;
}

body .auth-signin-brand img {
  display: block;
  width: min(250px, 100%);
  height: auto;
  object-fit: contain;
  background: #ffffff;
}

@media (max-width: 820px) {
  body {
    display: block;
    padding: 12px;
  }

  .teacher-auth-shell {
    grid-template-columns: 1fr;
  }

  .teacher-auth-context {
    min-height: 0;
    padding: 30px 24px;
  }

  .teacher-auth-form-panel {
    padding: 30px 24px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0;
  }

  .teacher-auth-shell {
    border: 0;
  }

  .teacher-auth-context,
  .teacher-auth-form-panel {
    padding: 26px 18px;
  }

}
