/* =============================================================================
 * HIV/AIDS ANALYTICS SYSTEM — login.css
 * -----------------------------------------------------------------------------
 * Layout for the gate page only. Colours, typography, inputs, buttons and
 * banners all come from app.css, so the login page cannot drift away from the
 * dashboard's design system.
 * ========================================================================== */

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.login-card {
  width: 100%;
  max-width: 404px;
  padding: 28px 28px 24px;
  animation: login-rise 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes login-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .login-card { animation: none; }
}

.login-brand {
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--glass-border);
}

.login-title { font-size: 22px; letter-spacing: -0.02em; }

.login-sub {
  margin-top: 5px;
  font-size: 12.8px;
  color: var(--text-muted);
}

.login-form { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }

/* The input and its reveal button share one bordered box so the control reads
   as a single field rather than an input with a stray button beside it. */
.login-input { position: relative; display: flex; }

.login-input .input {
  padding: 11px 44px 11px 13px;
  font-size: 14px;
}

.login-reveal {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.login-reveal:hover { color: var(--text-primary); background: rgba(148, 163, 184, 0.12); }
.login-reveal:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.login-error { margin-top: -4px; }
.login-error .banner-title { font-weight: 640; }

.login-submit {
  min-height: 42px;
  font-size: 13.5px;
  margin-top: 2px;
}

.login-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
  font-size: 11.6px;
  line-height: 1.5;
  color: var(--text-muted);
}
.login-note i { margin-top: 2px; color: var(--text-muted); }
