/* ===== Login / role + student selection ===== */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.login {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Background video */
.login__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.login__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 12, 30, .12), rgba(10, 12, 30, .28));
}

/* Card */
.login-card {
  position: relative;
  z-index: 2;
  width: 384px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 24px 60px rgba(10, 13, 30, .28);
}

.login-logo { display: block; height: 32px; margin-bottom: 40px; color: #15190d; }
.login-logo svg { height: 32px; width: auto; display: block; }

.login-title {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 38px;
  font-weight: 600;
  color: #181d27;
}
.login-sub { margin: 0 0 24px; font-size: 16px; line-height: 24px; color: #535862; }

/* Steps */
.step { display: none; }
.step.is-active { display: block; }

/* Role option rows */
.role-list { display: flex; flex-direction: column; gap: 16px; }
.role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(117, 117, 117, .12);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.role:hover:not(:disabled) { border-color: rgba(117, 117, 117, .35); background: #fafafa; }
.role__left { display: flex; align-items: center; gap: 12px; }
.role__left span { font-size: 16px; font-weight: 600; color: #000; }
.role__icon, .role__arrow { display: inline-flex; color: #15190d; flex-shrink: 0; }
.role:disabled { opacity: .5; cursor: not-allowed; }

/* Back link */
.back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #000;
}
.back svg { color: #15190d; }

/* Student grid */
.students { display: flex; gap: 16px; }
.student {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(117, 117, 117, .12);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.student:hover:not(:disabled) { border-color: rgba(117, 117, 117, .4); transform: translateY(-2px); }
.student:disabled { opacity: .5; cursor: not-allowed; }
.student img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
}
.student__name { font-size: 16px; font-weight: 600; color: #000; }
.student__grade { font-size: 12px; color: rgba(0, 0, 0, .6); }

@media (max-width: 420px) {
  .login-card { padding: 28px; }
  .login-title { font-size: 26px; }
}
