/* Professional newsletter auth UI */
.nav-actions,
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-link,
.auth-signup {
  border: 0;
  background: transparent;
  color: #dbeafe;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.auth-signup {
  padding: 11px 16px;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, .28);
}

.auth-signup:hover,
.auth-link:hover {
  transform: translateY(-1px);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(2, 6, 23, .72);
  backdrop-filter: blur(12px);
}

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

.auth-dialog {
  position: relative;
  width: min(100%, 480px);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  background: #0b1220;
  color: #e6f7ff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .45);
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #dbeafe;
  cursor: pointer;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
}

.auth-tab {
  padding: 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #cbd5e1;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.is-active {
  background: #ffffff;
  color: #0f172a;
}

.auth-panel {
  display: none;
}

.auth-panel.is-active {
  display: block;
}

.auth-panel h2 {
  margin: 0 34px 10px 0;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.2;
}

.auth-panel p,
.auth-note {
  color: #cbd5e1;
}

.auth-privacy {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(34, 211, 238, .18);
  border-radius: 12px;
  background: rgba(34, 211, 238, .08);
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.55;
}

.auth-privacy a {
  color: #67e8f9;
  font-weight: 700;
  text-decoration: none;
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.auth-form label {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 700;
}

.auth-form input[type="email"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
  font-size: 16px;
  outline: none;
}

.auth-form input[type="email"]:focus,
.auth-form input[type="text"]:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .14);
}

.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.5;
}

.auth-honey {
  display: none;
}

@media (max-width: 900px) {
  .nav-actions,
  .header-actions {
    gap: 10px;
  }

  .header-back-link {
    display: none;
  }
}

@media (max-width: 640px) {
  .auth-link {
    display: none;
  }

  .auth-signup {
    padding: 10px 13px;
  }
}
