/* =========================================================================
   QXSINT FORTRESS AUTHENTICATION MODAL STYLES
   Liquid Glass + Obsidian + Divine Purple
   ========================================================================= */

.qxsint-is-hidden {
  display: none !important;
}

.qxsint-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(3, 2, 7, 0.88);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  animation: qxsintModalOverlayFade 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes qxsintModalOverlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes qxsintModalCardPop {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.qxsint-auth-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.085) 0%,
    rgba(168, 85, 247, 0.05) 42%,
    rgba(8, 5, 18, 0.94) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow:
    0 24px 64px -12px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 0 24px rgba(168, 85, 247, 0.1);
  animation: qxsintModalCardPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.qxsint-auth-close {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.qxsint-auth-close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(90deg);
}

.qxsint-auth-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.qxsint-auth-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}

.qxsint-auth-mark img {
  width: 1.85rem;
  height: 1.85rem;
  object-fit: contain;
}

.qxsint-auth-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c084fc;
  margin-bottom: 0.2rem;
}

.qxsint-auth-head h2 {
  font-size: 1.25rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.3;
}

.qxsint-auth-head p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.3rem;
  line-height: 1.45;
}

.qxsint-auth-tabs {
  display: flex;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.3rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.25rem;
}

.qxsint-auth-tab {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.qxsint-auth-tab:hover {
  color: #ffffff;
}

.qxsint-auth-tab.is-active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35) 0%, rgba(168, 85, 247, 0.25) 100%);
  color: #ffffff;
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25);
}

.qxsint-auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.qxsint-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
}

.qxsint-field span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.75);
}

.qxsint-field input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(3, 2, 7, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.qxsint-field input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.35);
  background: rgba(11, 7, 23, 0.9);
}

.qxsint-field input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.qxsint-field small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.35;
}

.qxsint-auth-primary {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 4px 18px rgba(168, 85, 247, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 0.4rem;
}

.qxsint-auth-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.65);
}

.qxsint-auth-primary:active {
  transform: translateY(0);
}

.qxsint-auth-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.qxsint-auth-feedback {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  padding: 0.6rem 0.8rem;
  border-radius: 0.65rem;
  line-height: 1.45;
  display: none;
  text-align: left;
}

.qxsint-auth-feedback.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.qxsint-auth-feedback.is-success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.qxsint-auth-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.45;
  margin-top: 0.4rem;
  text-align: left;
}

.qxsint-auth-note span {
  color: #c084fc;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.qxsint-auth-email-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #d8b4fe;
  margin-bottom: 0.4rem;
}

.qxsint-auth-email-chip button {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.qxsint-auth-prompt {
  padding: 0.85rem;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 0.75rem;
  margin-top: 0.4rem;
  text-align: left;
}

.qxsint-auth-prompt strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #ffffff;
  display: block;
}

.qxsint-auth-prompt p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0.3rem 0 0.6rem;
  line-height: 1.4;
}

.qxsint-auth-foot {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
