/* Sign-in page. Uses the POP tokens from app.css (:root). */

.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 12% 8%, rgba(19, 174, 184, .10), transparent 42%),
    radial-gradient(circle at 92% 96%, rgba(196, 119, 61, .08), transparent 40%),
    var(--ivory);
}

.login-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px 16px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--paper);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* evergreen band with the teal ring, as on the app's hero */
.login-band {
  position: relative;
  overflow: hidden;
  background: var(--ever);
  color: var(--on-ever);
  padding: 26px 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.login-band::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -110px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 40px solid rgba(19, 174, 184, .14);
  pointer-events: none;
}
.login-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 110px;
  height: auto;
}
.login-band-label {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 28px 28px;
}
.login-head { display: flex; flex-direction: column; gap: 6px; }
.login-head h1 { font-size: var(--fs-h1); }

.login-error { font-weight: 600; color: var(--bad-ink); }

.login-pw { position: relative; display: flex; }
.login-pw input { padding-right: 72px; min-height: 46px; font-size: 16px; }
.login-pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-text);
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
}
.login-pw-toggle:hover { background: var(--teal-wash); color: var(--ink); }
.login-pw-toggle:focus-visible { outline: none; box-shadow: var(--ring); }

.login-note { text-align: center; }

.login-noscript {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-weight: 600;
  text-align: center;
}

@media (max-width: 480px) {
  .login-wrap { justify-content: flex-start; padding-top: 24px; }
  .login-band { padding: 22px 20px 20px; }
  .login-form { padding: 22px 20px 24px; }
  .login-head h1 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn.is-busy::before { animation-duration: 2s; }
}
