/* ═══════════════════════════════════════════════════════════════════
 * KNOX UI KIT — kit-login/login.css
 * Layers on kit.css + kit-orb.css. Modeled on the Argus sign-in:
 * centred column, animated centrepiece, single field + ENTER,
 * shake + message on error.
 * ═══════════════════════════════════════════════════════════════════ */

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
}

.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center,
    transparent 40%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
  z-index: 0;
}

.signin {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(400px, 100%);
  animation: signin-rise 800ms cubic-bezier(0.25, 0.8, 0.25, 1) backwards;
}
@keyframes signin-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.orb-slot {
  margin-bottom: 34px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  text-transform: uppercase;
  background: linear-gradient(100deg, #ffffff 0%, var(--accent-3) 55%, var(--accent-1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 18px var(--glow-soft));
  margin-bottom: 8px;
}

.tagline {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 36px;
}

#signin-form { width: 100%; }

.field {
  display: flex;
  gap: 10px;
  width: 100%;
}
.field .kinput { flex: 1 1 auto; min-width: 0; text-align: center; letter-spacing: 0.12em; }
.field .kbtn { flex: 0 0 auto; }
.btn-arrow { transition: transform 0.25s ease; }
#enter-btn:hover .btn-arrow { transform: translateX(3px); }

.error {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--red);
  letter-spacing: 0.04em;
}

/* Shake + orb alert on wrong passphrase */
.signin.locked { animation: error-shake 0.4s ease; }
@keyframes error-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

.hint {
  margin-top: 26px;
  font-size: 11.5px;
  font-family: var(--font-body);
  color: var(--text-3);
}
.hint code {
  font-family: var(--font-mono);
  color: var(--text-2);
}

.signin-footer {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  z-index: 1;
}
