/* ==========================================================================
   Login page styles (used only by login.html)
   ========================================================================== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 24px 16px;
  background:
    radial-gradient(700px 420px at 15% 10%, rgb(79 70 229 / .45), transparent 65%),
    radial-gradient(700px 420px at 90% 90%, rgb(124 58 237 / .4), transparent 65%),
    var(--navy-950);
}
.login-panel { width: 100%; max-width: 440px; }

.login-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: rgb(255 255 255 / .75);
  font-size: 0.9rem;
  font-weight: 600;
}
.login-back:hover { color: #fff; }
.login-back .icon { width: 16px; height: 16px; }

.login-card { padding: 28px; box-shadow: var(--shadow-lg); }
.login-card__head { text-align: center; }
.login-card__head img { height: 38px; width: auto; margin: 0 auto 18px; }
.login-card__head h1 { font-size: 1.5rem; }
.login-card__head p { margin-top: 6px; color: var(--muted); font-size: 0.93rem; }

.role-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 22px;
  padding: 4px;
  border-radius: 12px;
  background: var(--soft-2);
}
.role-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.role-switch__btn .icon { width: 16px; height: 16px; }
.role-switch__btn:hover { color: var(--ink); }
.role-switch__btn.is-active { background: #fff; color: var(--primary-700); box-shadow: var(--shadow-xs); }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 46px; }
.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}
.password-toggle:hover { color: var(--primary-700); background: var(--soft); }
.password-toggle .icon { width: 18px; height: 18px; }

.login-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.login-row .consent { font-size: 0.88rem; }
.login-row .link-arrow { font-size: 0.88rem; }

.login-demo {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--primary-100);
  border-radius: var(--radius);
  background: var(--primary-50);
}
.login-demo p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--primary-800);
}
.login-demo .icon { width: 16px; height: 16px; }
.login-demo__btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.login-demo__btns button {
  min-height: 36px;
  padding: 0 6px;
  border: 1px solid var(--primary-200);
  border-radius: 8px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-700);
  transition: background-color .2s;
}
.login-demo__btns button:hover { background: var(--primary-100); }

.login-terms { margin-top: 20px; font-size: 0.78rem; color: var(--muted); text-align: center; }
.login-terms a { color: var(--primary-700); font-weight: 600; }
.login-terms a:hover { text-decoration: underline; }

.login-help { margin-top: 20px; text-align: center; font-size: 0.88rem; color: rgb(255 255 255 / .7); }
.login-help a { color: #fff; font-weight: 600; text-decoration: underline; }

@media (min-width: 480px) {
  .login-card { padding: 34px; }
}
