@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #ffffff;
  --muted: #9a9a94;
  --muted-2: #6b6b66;
  --surface: #17171a;
  --surface-2: #1f1f23;
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.16);
  --blue: #3987e5;
  --blue-2: #6aa6ff;
  --good: #22c55e;
  --critical: #f0555a;
}

html, body {
  background: #08080a !important;
  height: 100%;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.08); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,40px) scale(1.1); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.app-page {
  display: flex; align-items: center; justify-content: center; min-height: 100vh;
  position: relative; overflow: hidden;
  background: #08080a !important;
}
.app-page::before, .app-page::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0;
}
.app-page::before {
  width: 480px; height: 480px; top: -120px; left: -100px;
  background: radial-gradient(circle, rgba(57,135,229,0.35), transparent 70%);
  animation: drift1 16s ease-in-out infinite;
}
.app-page::after {
  width: 420px; height: 420px; bottom: -140px; right: -80px;
  background: radial-gradient(circle, rgba(106,166,255,0.22), transparent 70%);
  animation: drift2 20s ease-in-out infinite;
}

.app-content { display: flex; align-items: center; justify-content: center; width: 100%; position: relative; z-index: 1; }

.app-container {
  background: rgba(23,23,26,0.72) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  padding: 44px 40px !important;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.02) inset;
  animation: cardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo-box { text-align: center; margin-bottom: 28px; }
.logo-img { display: none !important; }
.logo-box::before {
  content: "🔐";
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin: 0 auto 16px;
  font-size: 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), #1d4ed8);
  box-shadow: 0 8px 24px rgba(57,135,229,0.4);
}
.logo-txt {
  color: var(--ink) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

.app-txt-section, .app-txt-section p {
  color: var(--muted) !important;
  font-size: 13.5px !important;
  text-align: center;
  line-height: 1.55;
}

.app-inp-lbl {
  color: var(--muted-2) !important;
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700 !important;
  margin-bottom: 6px;
}

.app-inp-prf-img { display: none !important; }
.app-inp-box { position: relative; }

.app-inp-txt, input[type="text"], input[type="password"], input[type="email"] {
  background: rgba(0,0,0,0.35) !important;
  border: 1px solid var(--border) !important;
  border-radius: 11px !important;
  color: var(--ink) !important;
  padding: 13px 15px !important;
  font-size: 14.5px !important;
  font-family: inherit !important;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.app-inp-txt::placeholder, input::placeholder { color: var(--muted-2) !important; }
.app-inp-txt:focus, input:focus {
  outline: none !important;
  border-color: var(--blue) !important;
  background: rgba(0,0,0,0.5) !important;
  box-shadow: 0 0 0 4px rgba(57,135,229,0.18) !important;
}

.app-inp-code-txt {
  background: rgba(0,0,0,0.35) !important;
  border: 1px solid var(--border) !important;
  border-radius: 11px !important;
  color: var(--ink) !important;
  width: 100%;
  box-sizing: border-box;
  font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace !important;
}
.app-inp-code-txt:focus {
  outline: none !important;
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 4px rgba(57,135,229,0.18) !important;
}

.app-btn-pri, button[type="submit"] {
  background: linear-gradient(135deg, var(--blue), #1d6fe0) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 11px !important;
  padding: 13px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 6px 18px rgba(57,135,229,0.28);
  transition: transform 0.12s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.app-btn-pri:hover, button[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(57,135,229,0.4); }
.app-btn-pri:active, button[type="submit"]:active { transform: translateY(0); }

.app-btn-sec, button[type="reset"], button[type="button"] {
  background: rgba(255,255,255,0.04) !important;
  color: var(--muted) !important;
  border: 1px solid var(--border) !important;
  border-radius: 11px !important;
  padding: 13px 20px !important;
  font-size: 13.5px !important;
  font-family: inherit !important;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.app-btn-sec:hover { color: var(--ink) !important; border-color: var(--border-strong) !important; background: rgba(255,255,255,0.07) !important; }

/* MFA method list (choose authenticator app / hardware token) */
ul.divide-y { border: none !important; display: flex; flex-direction: column; gap: 10px; }
ul.divide-y > li {
  border: 1px solid var(--border) !important;
  border-radius: 13px;
  padding: 14px 16px !important;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
ul.divide-y > li:hover { border-color: var(--border-strong) !important; background: rgba(255,255,255,0.03); transform: translateX(2px); }

.app-lst-lnk {
  color: var(--ink) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
}
.app-lst-lnk:hover { color: var(--blue-2) !important; }

i.las, i.la { color: var(--blue-2) !important; }

/* TOTP QR code image and secret key display */
.app-container img:not(.logo-img) {
  display: block;
  max-width: 190px;
  height: auto;
  margin: 4px auto 18px;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

form { display: flex; flex-direction: column; gap: 16px; }

/* Hide the mobile-app QR quick-sign-in feature - not used for this tool, and its
   default positioning clashes badly with the redesigned card layout. */
[onclick*="showQRCode"], [onclick*="hideQRCode"], #qrcode {
  display: none !important;
}
