.auth-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  z-index: 9999;
  padding: 24px;
}

.auth-modal.open {
  display: flex;
}

.auth-dialog {
  position: relative;
  width: min(520px, 95vw);
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #141414;
}

.auth-tabs {
  display: flex;
  gap: 2px;
}

.auth-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #cfcfcf;
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.auth-tab.active {
  background: #232323;
  color: #ffd34d;
}

.auth-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #d6d6d6;
  font-size: 1.4rem;
  padding: 0 1rem;
  cursor: pointer;
}

.auth-frame {
  width: 100%;
  height: min(70vh, 560px);
  border: 0;
  background: #111;
}

@media (max-width: 520px) {
  .auth-frame {
    height: 70vh;
  }
}
