/* ── QR CODE BRIDGE STYLES ───────────────────────────────────────────────── */
/* Enhanced visibility and styling for QR code install bridge */

.desktop-install-bridge {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.bridge-qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.bridge-qr-col a {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bridge-qr-col a:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

.bridge-scan {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.bridge-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

.bridge-divider::before,
.bridge-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bridge-divider::before {
  margin-right: 1rem;
}

.bridge-divider::after {
  margin-left: 1rem;
}

.bridge-email-col {
  max-width: 400px;
  margin: 0 auto;
}

.bridge-email-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.bridge-email-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(139, 126, 200, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.bridge-email-form input:focus {
  outline: none;
  border-color: rgba(139, 126, 200, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.bridge-email-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.bridge-email-btn {
  width: 100%;
  max-width: 250px;
}

.bridge-email-msg {
  min-height: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.bridge-email-msg[data-state="ok"] {
  color: #8B7EC8;
}

.bridge-email-msg[data-state="err"] {
  color: #ef4444;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .desktop-install-bridge {
    padding: 1rem;
    margin-top: 1.5rem;
  }

  .bridge-qr-col a svg {
    width: 120px !important;
    height: 120px !important;
  }

  .bridge-scan {
    font-size: 0.85rem;
  }

  .bridge-email-form {
    gap: 0.5rem;
  }

  .bridge-email-btn {
    max-width: 200px;
    font-size: 0.9rem;
  }
}

/* Animation for QR code appearance */
@keyframes qrFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.bridge-qr-col a {
  animation: qrFadeIn 0.5s ease-out;
}

/* Enhanced visibility on dark backgrounds */
.bridge-qr-col a {
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.bridge-qr-col a:hover {
  border-color: rgba(139, 126, 200, 0.5);
}