/* ==========================================================================
   Fontxsis Lab & Preview — Premium Xsislab Auth Gate
   ========================================================================== */

#xfont-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(11, 13, 15, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

#xfont-auth-gate.is-unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.xfont-auth-box {
  width: 100%;
  max-width: 400px;
  margin: 16px;
  background: #14171b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 36px 32px 32px;
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.7),
              0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: xfontAuthPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes xfontAuthPop {
  0% { transform: scale(0.92) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.xfont-auth-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 160px;
  background: radial-gradient(circle, rgba(0, 97, 255, 0.25) 0%, rgba(0, 97, 255, 0) 70%);
  pointer-events: none;
}

.xfont-auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.xfont-auth-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  filter: drop-shadow(0 4px 12px rgba(0, 97, 255, 0.3));
}

.xfont-auth-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.xfont-auth-desc {
  font-size: 13px;
  color: #8a939f;
  margin: 0 0 28px;
  line-height: 1.5;
}

.xfont-auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.xfont-auth-field {
  position: relative;
  display: flex;
  align-items: center;
}

.xfont-auth-input {
  width: 100%;
  height: 48px;
  background: #1c2026;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0 46px 0 16px;
  font-size: 14px;
  color: #ffffff;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.xfont-auth-input:focus {
  border-color: #0061ff;
  background: #20262f;
  box-shadow: 0 0 0 3px rgba(0, 97, 255, 0.2);
}

.xfont-auth-input::placeholder {
  color: #5c6675;
}

.xfont-auth-toggle-pass {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #6b7787;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.xfont-auth-toggle-pass:hover {
  color: #ffffff;
}

.xfont-auth-btn {
  height: 48px;
  background: #0061ff;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 8px 20px -4px rgba(0, 97, 255, 0.5);
  font-family: inherit;
}

.xfont-auth-btn:hover {
  background: #0052db;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -4px rgba(0, 97, 255, 0.6);
}

.xfont-auth-btn:active {
  transform: translateY(0);
}

.xfont-auth-error {
  font-size: 12px;
  color: #ff4d4f;
  min-height: 18px;
  margin-top: 4px;
  transition: all 0.2s ease;
  opacity: 0;
  transform: translateY(-4px);
}

.xfont-auth-error.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes xfontShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.xfont-auth-box.shake {
  animation: xfontShake 0.4s ease;
}

.xfont-auth-footer {
  margin-top: 24px;
  font-size: 12px;
  color: #555f6d;
}
