/* Shared auth UI used by public lander pages that do not load static/style.css. */

.auth-slot {
  display: inline-flex;
  align-items: center;
  min-width: 28px;
  min-height: 28px;
}

.auth-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  font: inherit;
  font-family: var(--ds-font, inherit);
  font-size: 13px;
  font-weight: 600;
  color: #111922;
  background: rgba(255, 255, 255, 0.78);
  border: 1.5px solid rgba(17, 25, 34, 0.32);
  border-radius: 999px;
  padding: 0 14px;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.auth-signin-btn:hover {
  background: #ffffff;
  border-color: #111922;
  filter: none;
}

.auth-signin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.auth-signin-icon svg {
  display: block;
  width: 14px;
  height: 14px;
}

.signup-quota-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 25, 34, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.signup-quota-overlay.is-open {
  display: flex;
}

.signup-quota-modal {
  width: min(100%, 420px);
  background: #fff;
  border: 1px solid rgba(17, 25, 34, 0.12);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(17, 25, 34, 0.24);
  padding: 24px;
  color: #111922;
}

.signup-quota-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.signup-quota-title {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
}

.signup-quota-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid #d8dadd;
  border-radius: 50%;
  background: #fff;
  color: #111922;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.signup-quota-copy {
  margin: 0 0 18px;
  color: #4f5a64;
  font-size: 14px;
  line-height: 1.5;
}

.signup-quota-form,
.signup-quota-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup-quota-step[hidden] {
  display: none;
}

.signup-quota-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #36424d;
  font-size: 13px;
  font-weight: 600;
}

.signup-quota-input {
  width: 100%;
  border: 1px solid #ccd1d5;
  border-radius: 10px;
  padding: 11px 12px;
  color: #111922;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.signup-quota-input:focus {
  border-color: #1a6e7a;
  box-shadow: 0 0 0 3px rgba(26, 110, 122, 0.12);
}

.signup-quota-btn {
  width: 100%;
  min-height: 44px;
  border: 1px solid #111922;
  border-radius: 999px;
  background: #111922;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.signup-quota-btn.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #111922;
  color: #fff;
  border-color: #111922;
}

.signup-quota-btn:disabled {
  opacity: 0.62;
  cursor: wait;
}

.signup-quota-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #828b94;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.signup-quota-divider::before,
.signup-quota-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e1e4e7;
}

.signup-quota-error {
  min-height: 18px;
  color: #b42318;
  font-size: 13px;
  line-height: 1.4;
}

.signup-quota-note {
  color: #66727d;
  font-size: 12px;
  line-height: 1.45;
  margin: 2px 0 0;
}

.signup-quota-link {
  border: none;
  background: transparent;
  color: #1a6e7a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.auth-credits-modal {
  width: min(100%, 480px);
}

.auth-credits-copy {
  margin-bottom: 16px;
}

.auth-credits-preview-title {
  margin: 0 0 8px;
  color: #36424d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-credits-packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.auth-credits-package {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #d8dadd;
  border-radius: 8px;
  background: #f8f7f3;
  color: #111922;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 12px;
}

.auth-credits-package:hover,
.auth-credits-package:focus-visible {
  border-color: #1a6e7a;
  background: #fff;
  outline: none;
}

.auth-credits-package strong {
  font-size: 14px;
  line-height: 1.2;
}

.auth-credits-package span {
  color: #66727d;
  font-size: 12px;
  line-height: 1.35;
}

.auth-credits-action {
  margin-top: 2px;
}

.auth-credits-note {
  text-align: center;
}

@media (max-width: 560px) {
  .auth-credits-packages {
    grid-template-columns: 1fr;
  }

  .auth-credits-package {
    min-height: 0;
  }
}
