.login h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 20px; }
.login h2 { font-size: 30px; margin-bottom: 8px; }
.narrow { max-width: 520px; margin: 10px auto; }
.center { text-align: center; }
.stack { display: grid; gap: 14px; margin-top: 16px; }
.back { margin-bottom: 8px; display: inline-block; }

.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.who-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 24px 30px; border: 0; border-radius: 28px; cursor: pointer;
  font-family: inherit; color: var(--navy); transition: transform 120ms var(--ease), box-shadow 120ms var(--ease);
}
.who-card img { width: 220px; max-width: 100%; height: auto; }
.who-card.student { background: var(--blue); box-shadow: 0 8px 0 var(--blue-d); }
.who-card.teacher { background: var(--green); box-shadow: 0 8px 0 var(--green-d); justify-content: center; min-height: 300px; }
.who-card:active { transform: translateY(6px); }
.who-t { font: 800 34px 'Bricolage Grotesque', sans-serif; letter-spacing: -0.02em; }
.who-s { font-weight: 700; font-size: 17px; }
@media (hover: hover) and (pointer: fine) { .who-card:hover { transform: translateY(-3px); } }

.code-input {
  width: 100%; text-align: center; font: 800 44px 'Bricolage Grotesque', sans-serif; letter-spacing: .12em; text-transform: uppercase;
  padding: 12px; border: 3px solid #D5DCEA; border-radius: 18px; color: var(--navy);
}
.code-input:focus { outline: none; border-color: var(--blue-ink); box-shadow: 0 0 0 5px rgba(36, 73, 184, 0.18); }

.names { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.name-btn {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 0; border-radius: 20px; background: #fff; cursor: pointer;
  font: 800 20px 'Nunito Sans', sans-serif; color: var(--navy); text-align: left; box-shadow: 0 5px 0 var(--line);
  transition: transform 120ms var(--ease);
}
.name-btn:active { transform: translateY(4px); }
@media (hover: hover) and (pointer: fine) { .name-btn:hover { box-shadow: 0 5px 0 var(--blue-d), inset 0 0 0 2px var(--blue-d); } }

[data-pin-who] { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 10px; font: 800 22px 'Bricolage Grotesque', sans-serif; }
.dots { display: flex; justify-content: center; gap: 16px; margin: 18px 0 6px; }
.dots i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #9AA8C4; }
.dots i.on { background: var(--navy); border-color: var(--navy); }
.pad { display: grid; grid-template-columns: repeat(3, 80px); gap: 12px; justify-content: center; margin-top: 8px; }
.pad button {
  height: 72px; border: 0; border-radius: 18px; background: var(--bg); box-shadow: 0 5px 0 #C9D3E6; cursor: pointer;
  font: 800 30px 'Bricolage Grotesque', sans-serif; color: var(--navy); transition: transform 100ms var(--ease);
}
.pad button:active { transform: translateY(4px); box-shadow: 0 1px 0 #C9D3E6; }

.notice-ok { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #E6F7EC; color: #1E5A33; line-height: 1.5; }
.ok-msg { color: #1E7A3E; font-weight: 800; }
.link.small { font-size: 15px; justify-self: start; }
