.ha-auth-wrap {
  display: flex;
  justify-content: center;
}

.ha-auth-outer {
  display: flex;
  justify-content: center;
  gap: 32px;
  align-items: flex-start;
}

.ha-auth-card {
  padding: 36px;
}

.ha-auth-input {
  height: 40px;
  font-size: 13.5px;
}

.ha-auth-sidebar {
  width: 280px;
  padding: 24px;
  background: var(--color-ink);
  color: #fff;
  border-radius: 10px;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .ha-auth-outer {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .ha-auth-card {
    padding: 24px;
  }

  .ha-auth-input {
    height: 44px;
    font-size: 16px;
  }

  .ha-auth-sidebar {
    width: auto;
    padding: 20px;
  }
}

/* ── Error box (app/views/pages/apply.html.erb) ──────────────────────────── */
.ha-auth-error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
}

/* ── Beta terms dialog (app/views/pages/apply.html.erb) ──────────────────── */
#beta-terms-dialog {
  max-width: 560px;
  width: 90vw;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 32px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
#beta-terms-dialog::backdrop { background: rgba(0,0,0,0.4); }
#beta-terms-dialog h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--color-ink);
  margin-bottom: 16px;
}
#beta-terms-dialog .terms-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--color-deep);
  max-height: 50vh;
  overflow-y: auto;
  margin-bottom: 20px;
}
#beta-terms-dialog .close-btn {
  background: var(--color-brand);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
