.app-loading .screen { visibility: hidden; }

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(110% 100% at 85% 20%, #155a52 0%, #0a2521 48%, #071b18 100%);
}

.login-overlay[hidden] { display: none; }

.login-card {
  width: min(100%, 520px);
  padding: 42px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .32);
}

.login-mark {
  color: #155a52;
  font: 700 12px/1 "Space Grotesk", sans-serif;
  letter-spacing: .18em;
}

.login-card h1 {
  margin: 16px 0 12px;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.05;
}

.login-card > p { color: #5c6662; line-height: 1.55; }
.login-card label { display: block; margin: 22px 0 8px; font-weight: 700; font-size: 13px; }
.login-card input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d7dbd4;
  border-radius: 12px;
  background: #f8f9f6;
  color: #0b0d0c;
  font: inherit;
}
.login-card input:focus { outline: 3px solid rgba(63, 179, 162, .22); border-color: #3fb3a2; }
.login-card .btn { width: 100%; justify-content: center; margin-top: 10px; }
.login-card small { display: block; margin-top: 14px; color: #707a75; text-align: center; }
.login-card .login-error { min-height: 24px; margin: 8px 0 0; color: #b53f30; font-size: 13px; }
.login-card .login-error.success { color: #246b50; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 20px 0 4px;
  padding: 4px;
  border-radius: 12px;
  background: #eef0ea;
}
.auth-tabs button {
  border: 0;
  border-radius: 9px;
  padding: 10px;
  background: transparent;
  color: #5c6662;
  font-weight: 700;
}
.auth-tabs button.active { background: #fff; color: #0b0d0c; box-shadow: 0 1px 5px rgba(0, 0, 0, .08); }

.learner-pill {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(390px, calc(100vw - 36px));
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 16px;
  background: rgba(7, 32, 29, .94);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  backdrop-filter: blur(10px);
}
.learner-pill > span { min-width: 0; display: grid; }
.learner-pill b, .learner-pill small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.learner-pill small { color: #a9c0b9; }
.learner-pill button {
  flex: none;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: #dcf24a;
  color: #0b0d0c;
  font-weight: 700;
}

.q-item.q-locked { opacity: .45; pointer-events: none; }
.quiz-result.show { display: block; }
.why.show { display: block; }

@media (max-width: 720px) {
  .login-card { padding: 30px 22px; border-radius: 22px; }
  .learner-pill { right: 10px; bottom: 10px; }
}

@media print {
  nav, .progress-rail, .learner-pill, .cert-input, #certActions, .screen > :not(#certificate) { display: none !important; }
  body, .screen, #final { min-height: 0 !important; padding: 0 !important; background: #fff !important; }
  #final { display: block !important; }
  #certificate { display: block !important; margin: 0 !important; box-shadow: none !important; }
}
