.login-layout {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 42px;
  align-items: center;
}
.hero-copy { padding: 30px 0; }
.hero-title span { display: block; color: var(--blue-600); }
.hero-points { display: grid; gap: 12px; margin-top: 30px; }
.hero-point { display: flex; align-items: center; gap: 12px; color: var(--navy-800); font-weight: 700; }
.hero-point i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: white; box-shadow: 0 8px 22px rgba(16,55,99,.1); font-style: normal; }
.login-card { overflow: hidden; }
.login-card-top { padding: 26px; color: white; background: linear-gradient(140deg, var(--navy-950), var(--blue-600)); }
.login-card-top h2 { margin-bottom: 6px; color: white; }
.login-card-top p { margin: 0; color: #d9efff; }
.login-form { display: grid; gap: 18px; padding: 26px; }
.code-input { min-height: 62px !important; font-size: 28px; font-weight: 900; letter-spacing: .35em; text-align: center; }
.demo-box { border: 1px dashed #a9ccdf; border-radius: 13px; padding: 14px; color: var(--muted); background: #f5fbff; font-size: 13px; text-align: center; }
.demo-box button { border: 0; padding: 2px 4px; color: var(--blue-600); background: none; font-weight: 900; text-decoration: underline; }

.welcome-card { position: relative; overflow: hidden; padding: 28px; color: white; background: linear-gradient(135deg, var(--navy-950), var(--blue-600)); }
.welcome-card::after { content: "๒"; position: absolute; right: 22px; bottom: -50px; color: rgba(255,255,255,.08); font-size: 190px; font-weight: 900; }
.welcome-card h1 { position: relative; z-index: 1; color: white; font-size: clamp(28px, 4vw, 42px); }
.welcome-card p { position: relative; z-index: 1; margin: 0; color: #d7eeff; }
.student-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.student-meta .tag { color: white; background: rgba(255,255,255,.14); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 20px; margin-top: 22px; }
.course-list { display: grid; gap: 14px; }
.course-card { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 15px; align-items: center; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: white; text-decoration: none; }
.course-card:hover { border-color: #9acfea; box-shadow: 0 12px 30px rgba(18,58,112,.1); }
.course-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; color: white; background: linear-gradient(145deg, var(--blue-500), var(--navy-800)); font-size: 24px; }
.course-icon.has-art { border-radius: 16px; box-shadow: 0 8px 18px rgba(0,17,50,.36); }
.course-card h3 { margin: 0 0 4px; font-size: 17px; }
.course-card p { margin: 0; color: var(--muted); font-size: 12px; }
.course-score { color: var(--navy-800); font-size: 18px; font-weight: 900; white-space: nowrap; }
.course-score small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; font-weight: 700; text-align: right; }
.course-card.score-only { cursor: default; }
.course-card.score-only:hover { transform: none; border-color: rgba(180,231,255,.18); box-shadow: none; }
.assignment-list { display: grid; gap: 11px; }
.assignment-row { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 11px; border-bottom: 1px solid #e5eef4; }
.assignment-row:last-child { border-bottom: 0; padding-bottom: 0; }
.assignment-row strong { display: block; margin-bottom: 3px; font-size: 14px; }
.assignment-row small { color: var(--muted); }

@media (max-width: 850px) {
  .login-layout, .dashboard-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
}
@media (max-width: 520px) {
  .hero-points { display: none; }
  .course-card { grid-template-columns: 45px minmax(0, 1fr); }
  .course-icon { width: 45px; height: 45px; }
  .course-score { grid-column: 2; }
}

.hero-copy { position: relative; z-index: 1; }
.frozen-hero-character { position: absolute; z-index: -1; width: min(430px, 48vw); right: -18%; bottom: -29%; opacity: .3; filter: drop-shadow(0 25px 24px rgba(0,8,30,.6)) drop-shadow(0 0 24px rgba(119,221,255,.35)); }
.hero-title { color: #fff; text-shadow: 0 7px 22px #001b42; }
.hero-title span { color: #9ceaff; background: linear-gradient(180deg,#fff,#74cdf3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-point { color: #d5edfa; }
.hero-point i { color: #12518e; background: #eafbff; box-shadow: 0 0 20px rgba(121,225,255,.35); }
.login-card { position: relative; }
.login-card-top { position: relative; z-index: 2; background: linear-gradient(140deg,rgba(3,18,51,.96),rgba(14,102,178,.92)); }
.login-form { position: relative; z-index: 2; }
.login-castle { position: absolute; right: -25px; bottom: -18px; width: 210px; opacity: .09; pointer-events: none; }
.username-input { letter-spacing: .18em; }
.demo-box { color: #b5d1e3; border-color: rgba(169,220,239,.3); background: rgba(2,20,48,.35); }
.demo-box button { color: #86e3ff; }
.welcome-card { background: linear-gradient(135deg,#061733,#0a4f98 62%,#1398c8); }
.welcome-olaf { position: absolute; z-index: 1; right: 35px; bottom: -8px; width: 138px; filter: drop-shadow(0 10px 13px rgba(0,18,54,.62)); }
.welcome-card::after { content: "❄"; color: rgba(255,255,255,.08); }
.welcome-card > :not(.welcome-olaf) { position: relative; z-index: 2; }
.course-card { color: #effaff; border-color: rgba(180,231,255,.18); background: rgba(1,20,50,.42); }
.course-card:hover { border-color: #87ddff; background: rgba(10,64,115,.5); }
.course-card p, .assignment-row small { color: #9fc3dc; }
.course-score { color: #b9f0ff; }
.course-score small { color: #83aec9; }
.assignment-row { border-color: rgba(180,231,255,.13); }
@media (max-width: 850px) {
  .frozen-hero-character { position: relative; display: block; width: min(290px, 80vw); right: auto; bottom: auto; margin: -15px auto -25px; opacity: .82; }
}
@media (max-width: 520px) {
  .login-layout { gap: 24px; }
  .hero-copy { text-align: center; }
  .hero-title { font-size: 36px; }
  .welcome-olaf { width: 94px; right: 8px; opacity: .72; }
  .welcome-card { padding-right: 82px; }
  .code-input { font-size: 23px; }
}
