/* MKI Classic / public class login. Visual-only; scoped to class_login markup.
   Do not change access control, password handling, POST, or authenticated views. */
body.portal-guest .portal-content .mki-class-entry-hero {
  min-height: 0;
  margin: 0 0 22px;
  padding: 4px 0 20px;
  border: 0;
  border-bottom: 1px solid #e5deec;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: #29213f;
  overflow: visible;
}
body.portal-guest .portal-content .mki-class-entry-hero::after { display: none; }
body.portal-guest .portal-content .mki-class-entry-hero .eyebrow {
  color: #a27447;
  font-weight: 800;
  letter-spacing: .12em;
}
body.portal-guest .portal-content .mki-class-entry-hero h1 {
  margin: 6px 0 9px;
  color: #29213f;
  font-size: clamp(27px, 3.6vw, 38px);
  line-height: 1.18;
  letter-spacing: -.035em;
}
body.portal-guest .portal-content .mki-class-entry-hero .muted {
  max-width: 680px;
  color: #70697d;
  font-size: 14px;
  line-height: 1.6;
}
body.portal-guest .portal-content .mki-class-entry-hero .mki-entry-links {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: flex-end;
}
body.portal-guest .portal-content .mki-class-entry-hero .mki-entry-links > * { width: auto; }
body.portal-guest .portal-content .mki-class-entry-hero .secondary {
  min-height: 40px;
  padding: 9px 16px;
  color: #29213f;
  background: #fff;
  border: 1px solid #dfd7e8;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 750;
}
body.portal-guest .portal-content .mki-class-entry-hero .secondary:hover {
  background: #f4eff8;
  border-color: #b9a5cf;
}
body.portal-guest .portal-content .mki-class-entry-hero .mki-back-public {
  color: #68508b;
}
body.portal-guest .portal-content .mki-class-entry-hero .mki-back-public:hover { color: #29213f; }
body.portal-guest .portal-content .mki-class-entry-picker,
body.portal-guest .portal-content .mki-class-entry-login {
  border: 1px solid #e5deec;
  border-radius: 17px;
  box-shadow: 0 12px 32px #29213f0a;
  background: #fff;
}
body.portal-guest .portal-content .mki-class-entry-picker {
  padding: clamp(18px, 2.6vw, 30px);
}
body.portal-guest .portal-content .mki-class-entry-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee8f3;
}
body.portal-guest .portal-content .mki-class-entry-label {
  color: #a27447;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
body.portal-guest .portal-content .mki-class-entry-panel-head h2 {
  margin: 7px 0 6px;
  font-size: clamp(21px, 2.5vw, 27px);
  line-height: 1.25;
  letter-spacing: -.025em;
  color: #29213f;
}
body.portal-guest .portal-content .mki-class-entry-panel-head .muted {
  max-width: 580px;
  font-size: 13px;
  line-height: 1.6;
  color: #70697d;
}
body.portal-guest .portal-content .mki-class-entry-count {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #e5deec;
  border-radius: 999px;
  color: #68508b;
  background: #f4eff8;
  font-size: 12px;
  font-weight: 750;
}
body.portal-guest .portal-content .mki-class-entry-picker .cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
body.portal-guest .portal-content .mki-class-entry-picker .mki-class-entry-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 94px;
  padding: 15px;
  border: 1px solid #e5deec;
  border-radius: 13px;
  background: #fff;
  text-decoration: none;
  box-shadow: none;
  overflow: hidden;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
body.portal-guest .portal-content .mki-class-entry-card::after { display: none; }
body.portal-guest .portal-content .mki-class-entry-card:hover,
body.portal-guest .portal-content .mki-class-entry-card:focus-visible {
  background: #faf8fc;
  border-color: #b8a7d3;
  box-shadow: 0 6px 18px #29213f0d;
}
body.portal-guest .portal-content .mki-class-entry-card:focus-visible {
  outline: 3px solid #dba77680;
  outline-offset: 2px;
}
body.portal-guest .portal-content .mki-class-entry-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f1eafa;
  color: #614880;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: -.04em;
  white-space: nowrap;
}
body.portal-guest .portal-content .mki-class-entry-card-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
body.portal-guest .portal-content .mki-class-entry-card-copy strong {
  display: block;
  color: #29213f;
  font-size: 15px;
  line-height: 1.25;
}
body.portal-guest .portal-content .mki-class-entry-teacher {
  color: #70697d;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
body.portal-guest .portal-content .mki-class-entry-card-arrow {
  align-self: center;
  flex: 0 0 auto;
  color: #8767a6;
  font-size: 19px;
}
body.portal-guest .portal-content .mki-class-entry-footnote {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid #eee8f3;
  color: #70697d;
  font-size: 12px;
}
body.portal-guest .portal-content .mki-class-entry-login {
  width: min(100%, 580px);
  padding: clamp(21px, 3vw, 32px);
  margin: 8px auto 0;
}
body.portal-guest .portal-content .mki-class-entry-login .back {
  display: inline-flex;
  margin-bottom: 21px;
  color: #68508b;
  font-size: 13px;
  font-weight: 750;
}
body.portal-guest .portal-content .mki-class-entry-selected {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
body.portal-guest .portal-content .mki-class-entry-selected h2 {
  margin: 5px 0 6px;
  font-size: clamp(24px, 3.2vw, 30px);
  line-height: 1.2;
  color: #29213f;
}
body.portal-guest .portal-content .mki-class-entry-selected .muted {
  margin: 0;
  color: #70697d;
  font-size: 13px;
}
body.portal-guest .portal-content .mki-class-entry-selected .muted strong {
  color: #29213f;
}
body.portal-guest .portal-content .mki-class-entry-hint {
  margin: 0 0 22px;
  padding: 13px 15px;
  border: 1px solid #e5deec;
  border-radius: 11px;
  background: #f7f3fb;
  color: #60556d;
  font-size: 13px;
  line-height: 1.55;
}
body.portal-guest .portal-content .mki-class-entry-login .login-password {
  gap: 16px;
}
body.portal-guest .portal-content .mki-class-entry-login .login-password .primary {
  background: #29213f;
  border-color: #29213f;
  border-radius: 11px;
}
body.portal-guest .portal-content .mki-class-entry-login .login-password .primary:hover {
  background: #423459;
  border-color: #423459;
}
@media (max-width: 860px) {
  body.portal-guest .portal-content .mki-class-entry-picker .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.portal-guest .portal-content .mki-class-entry-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  body.portal-guest .portal-content .mki-class-entry-hero .mki-entry-links {
    justify-content: flex-start;
  }
}
@media (max-width: 560px) {
  body.portal-guest .portal-content .mki-class-entry-hero { padding: 0 0 19px; }
  body.portal-guest .portal-content .mki-class-entry-hero h1 { font-size: 28px; }
  body.portal-guest .portal-content .mki-class-entry-picker,
  body.portal-guest .portal-content .mki-class-entry-login { padding: 18px 15px; }
  body.portal-guest .portal-content .mki-class-entry-picker .cards { grid-template-columns: minmax(0, 1fr); }
  body.portal-guest .portal-content .mki-class-entry-panel-head { flex-wrap: wrap; }
  body.portal-guest .portal-content .mki-class-entry-picker .mki-class-entry-card { min-height: 84px; }
  body.portal-guest .portal-content .mki-class-entry-hero .mki-entry-links { gap: 9px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  body.portal-guest .portal-content .mki-class-entry-card { transition: none; }
}
