/* Student login layout only. Visual rules live in shared/auth_contracts.css. */

body.student-login-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 0 !important;
  overflow-x: hidden;
  letter-spacing: 0;
}

body.student-login-page > .ui-skip-target {
  display: none !important;
}

.student-auth-container {
  width: min(65rem, calc(100% - 2rem));
  margin-inline: auto;
}

.student-auth-nav,
.student-auth-nav__inner {
  min-height: 4.375rem;
}

.student-auth-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.125rem;
}

.student-auth-brand,
.student-auth-home {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.student-auth-brand > span {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
}

.student-auth-brand img {
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
}

.student-auth-brand strong {
  font-size: 0.94rem;
  font-weight: 900;
}

.student-auth-home {
  min-height: 2.5rem;
  padding: 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.student-auth-main {
  min-height: calc(100vh - 7.875rem);
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(20.625rem, 0.97fr);
  align-items: stretch;
  gap: 1.375rem;
  padding-block: 2.625rem;
}

.student-auth-panel {
  padding: 1.875rem;
}

.student-auth-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.375rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--tz-border);
}

.student-auth-header__icon {
  width: 3.125rem;
  height: 3.125rem;
  flex: 0 0 auto;
  font-size: 1.35rem;
}

.student-auth-header > div {
  min-width: 0;
}

.student-auth-header small,
.student-auth-eyebrow {
  font-size: 0.7rem;
  font-weight: 900;
}

.student-auth-header h1 {
  margin: 0.125rem 0 0.25rem;
  font-size: 1.45rem;
  font-weight: 900;
}

.student-auth-header p {
  margin: 0;
  font-size: 0.8rem;
}

.student-auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 1.125rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid;
  font-size: 0.78rem;
  line-height: 1.7;
}

.student-auth-form {
  display: grid;
  gap: 1.05rem;
}

.student-auth-field {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.student-auth-field > span {
  font-size: 0.78rem;
}

.student-auth-control {
  position: relative;
  height: 3rem;
}

.student-auth-control input {
  width: 100%;
  height: 3rem;
  padding: 0 2.7rem 0 0.8rem;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  text-align: right;
}

.student-auth-control > i {
  position: absolute;
  inset-inline-start: 0.875rem;
  inset-block-start: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.student-auth-control--password input {
  padding-inline-end: 2.8rem;
}

.student-auth-control--password button {
  position: absolute;
  z-index: 2;
  inset-inline-end: 0.45rem;
  inset-block-start: 0.45rem;
  width: 2.125rem;
  height: 2.125rem;
  display: grid;
  place-items: center;
  padding: 0;
}

.student-auth-submit {
  min-height: 3.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.2rem;
  padding: 0 1.125rem;
  font-size: 0.84rem;
}

.student-auth-form .ui-submit-status {
  min-height: 1.125rem;
  margin: -0.5rem 0 0;
  font-size: 0.68rem;
}

.student-auth-security {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.05rem;
  padding-top: 0.95rem;
  border-top: 1px solid;
  font-size: 0.69rem;
}

.student-auth-admin-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  text-decoration: none;
}

.student-auth-onboarding {
  position: relative;
  padding: 2.125rem;
  overflow: hidden;
}

.student-auth-onboarding__mark {
  width: 3.125rem;
  height: 3.125rem;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.student-auth-onboarding .student-auth-eyebrow {
  margin: 1.55rem 0 0.45rem;
}

.student-auth-onboarding h2 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.45;
}

.student-auth-onboarding > p:not(.student-auth-eyebrow) {
  margin: 0.625rem 0 0;
  font-size: 0.8rem;
  line-height: 1.9;
}

.student-auth-steps {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.student-auth-steps li {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.student-auth-steps li > span {
  width: 1.875rem;
  height: 1.875rem;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 900;
}

.student-auth-steps li > div {
  display: grid;
  gap: 0.125rem;
}

.student-auth-steps strong {
  font-size: 0.76rem;
}

.student-auth-steps small {
  font-size: 0.64rem;
}

.student-auth-register {
  position: relative;
  z-index: 1;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.student-auth-groups-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.875rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

.student-auth-footer {
  min-height: 3.5rem;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
}

@media (max-width: 800px) {
  .student-auth-main {
    grid-template-columns: 1fr;
    padding-block: 1.5rem;
  }

  .student-auth-panel { order: 1; }
  .student-auth-onboarding { order: 2; }
}

@media (max-width: 520px) {
  .student-auth-container { width: min(100% - 1.5rem, 65rem); }
  .student-auth-nav,
  .student-auth-nav__inner { min-height: 4rem; }
  .student-auth-brand strong { font-size: 0.78rem; }
  .student-auth-home span { display: none; }
  .student-auth-home { width: 2.5rem; padding: 0; justify-content: center; }
  .student-auth-main { gap: 0.875rem; padding-block: 0.875rem 1.5rem; }
  .student-auth-panel,
  .student-auth-onboarding { padding: 1.3rem; }
  .student-auth-header__icon { width: 2.7rem; height: 2.7rem; }
  .student-auth-header h1 { font-size: 1.25rem; }
  .student-auth-onboarding h2 { font-size: 1.35rem; }
}
