/* ArticleConnect auth modal — from articleconnect_homepage.html, scoped to #acAuthModalRoot */
#acAuthModalRoot .modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(11, 29, 58, 0.65);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}

#acAuthModalRoot .modal-bg.open {
  opacity: 1;
  pointer-events: all;
}

#acAuthModalRoot .modal {
  background: white;
  border-radius: 20px;
  padding: 36px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(11, 29, 58, 0.22);
  transform: translateY(20px);
  transition: transform 0.22s;
}

#acAuthModalRoot .modal-bg.open .modal {
  transform: translateY(0);
}

#acAuthModalRoot .modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

#acAuthModalRoot .modal-title {
  font-family: Poppins, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy, #0b1d3a);
}

#acAuthModalRoot .modal-close {
  font-size: 22px;
  cursor: pointer;
  color: var(--gray3, #b0bed4);
  line-height: 1;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
}

#acAuthModalRoot .modal-sub {
  font-size: 14px;
  color: var(--muted, #6b7e9b);
  margin-bottom: 24px;
}

#acAuthModalRoot .party-tabs {
  display: flex;
  background: var(--gray, #f4f7fb);
  border-radius: 11px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 22px;
}

#acAuthModalRoot .party-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted, #6b7e9b);
  transition: all 0.18s;
  border: none;
  background: transparent;
  font-family: Inter, sans-serif;
}

#acAuthModalRoot .party-tab.active {
  background: white;
  color: var(--blue, #1a5eab);
  box-shadow: 0 2px 8px rgba(11, 29, 58, 0.08);
}

#acAuthModalRoot .form-group {
  margin-bottom: 14px;
}

#acAuthModalRoot .form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy, #0b1d3a);
  display: block;
  margin-bottom: 6px;
}

#acAuthModalRoot .form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray2, #e8eef7);
  border-radius: 10px;
  font-size: 14px;
  font-family: Inter, sans-serif;
  color: var(--text, #1c2b45);
  outline: none;
  transition: border-color 0.18s;
  box-sizing: border-box;
}

#acAuthModalRoot .form-input:focus {
  border-color: var(--blue, #1a5eab);
}

#acAuthModalRoot .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#acAuthModalRoot .submit-btn {
  width: 100%;
  padding: 13px;
  background: var(--blue, #1a5eab);
  border: none;
  border-radius: 11px;
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: Inter, sans-serif;
  margin-top: 6px;
  transition: all 0.18s;
}

#acAuthModalRoot .submit-btn:hover {
  background: var(--blue2, #2472c8);
}

#acAuthModalRoot .modal-footer {
  text-align: center;
  font-size: 13px;
  color: var(--muted, #6b7e9b);
  margin-top: 14px;
}

#acAuthModalRoot .modal-footer a {
  color: var(--blue, #1a5eab);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

#acAuthModalRoot .modal-footer a:hover {
  text-decoration: underline;
}

#acAuthModalRoot .toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy, #0b1d3a);
  color: white;
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s;
  white-space: nowrap;
  pointer-events: none;
}

#acAuthModalRoot .toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#acAuthModalRoot .ac-auth-field-error {
  font-size: 12px;
  color: #c53030;
  margin-top: 4px;
  display: block;
}

@media (max-width: 860px) {
  #acAuthModalRoot .form-row {
    grid-template-columns: 1fr;
  }
}
