.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.auth-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: min(90vh, 760px);
  overflow-y: auto;
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-size: 1.6rem;
  line-height: 1;
}

.auth-title {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.auth-subtitle {
  margin-bottom: 16px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-tab {
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--text-main);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #6366f1 100%);
  border-color: transparent;
}

.auth-alert {
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.auth-alert-error {
  border: 1px solid rgba(255, 87, 87, 0.6);
  background: rgba(255, 87, 87, 0.12);
}

.auth-alert-success {
  border: 1px solid rgba(44, 191, 106, 0.6);
  background: rgba(44, 191, 106, 0.12);
}

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

.auth-form label {
  margin-top: 2px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.auth-submit {
  width: 100%;
  margin-top: 10px;
}

.auth-link-button {
  align-self: flex-end;
  color: var(--accent-glow);
  font-size: 0.9rem;
  text-decoration: underline;
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-checkbox input {
  margin-top: 2px;
}

.auth-checkbox a {
  text-decoration: underline;
}

body.modal-open {
  overflow: hidden;
}

