.auth-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.auth-inline-mobile {
  display: none;
}

.auth-home-slot {
  display: none;
}

.auth-btn,
.auth-linklike {
  border: 1px solid rgba(67, 55, 33, 0.12);
  background: rgba(255, 250, 242, 0.9);
  color: #222722;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.auth-btn:hover,
.auth-linklike:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(84, 67, 34, 0.12);
  border-color: rgba(67, 55, 33, 0.2);
}

.auth-btn-primary {
  background: linear-gradient(135deg, #d35b2a, #b7471d);
  border-color: transparent;
  color: #fff;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(32, 132, 95, 0.12);
  color: #215f48;
  font-size: 0.92rem;
  font-weight: 700;
}

.auth-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #20845f;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(28, 23, 15, 0.42);
  backdrop-filter: blur(6px);
}

.auth-overlay.hidden {
  display: none;
}

.auth-modal {
  width: min(460px, 100%);
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 250, 242, 0.98);
  border: 1px solid rgba(67, 55, 33, 0.1);
  box-shadow: 0 28px 60px rgba(41, 33, 19, 0.2);
}

.auth-modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.auth-modal h2 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.auth-modal p {
  color: #666259;
  line-height: 1.6;
}

.auth-eyebrow {
  margin: 0;
  color: #896d58;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.auth-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(67, 55, 33, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: #222722;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

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

.auth-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #443927;
}

.auth-input {
  width: 100%;
  border: 1px solid rgba(67, 55, 33, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.auth-helper,
.auth-message {
  min-height: 1.4em;
  font-size: 0.92rem;
}

.auth-message {
  color: #215f48;
  font-weight: 700;
}

.auth-message.is-error {
  color: #a1362a;
}

.auth-signed-card {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(32, 132, 95, 0.08);
  border: 1px solid rgba(32, 132, 95, 0.14);
}

.auth-signed-card p {
  margin: 0;
}

.auth-signed-email {
  color: #222722;
  font-weight: 800;
}

@media (max-width: 900px) {
  .topbar {
    justify-content: space-between;
  }
}

@media (max-width: 860px) {
  .auth-home-slot {
    display: block;
    width: 100%;
    margin-top: 12px;
  }

  .auth-inline-mobile {
    display: flex;
  }

  .auth-inline {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .auth-btn,
  .auth-linklike,
  .auth-badge {
    width: 100%;
    justify-content: center;
  }

  .auth-modal {
    padding: 22px 18px;
  }

  .auth-modal h2 {
    font-size: 1.7rem;
  }
}
