/* ============================================================
   invite.css — Invite Friends Page (/profile/invite)
   Namespace prefix: boh-invite
   ============================================================ */

.boh-invite {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Not Logged In */
.boh-invite__not-logged-in {
  background-color: var(--boh-color-surface);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--boh-shadow-card);
  margin-top: 1rem;
}

.boh-invite__lock-box {
  width: 4rem;
  height: 4rem;
  background-color: var(--boh-color-bg);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
}

.boh-invite__lock-icon {
  width: 2rem;
  height: 2rem;
  color: var(--boh-color-primary);
}

.boh-invite__not-logged-in-title {
  font-weight: var(--boh-font-weight-700);
  color: var(--boh-color-primary);
  font-size: 18px;
  margin: 0 0 0.5rem 0;
}

.boh-invite__not-logged-in-desc {
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent);
  font-size: 13px;
  margin: 0 0 1rem 0;
}

.boh-invite__signin-btn {
  width: 100%;
  box-sizing: border-box;
  background-color: var(--boh-color-primary);
  color: var(--boh-color-surface);
  font-weight: var(--boh-font-weight-700);
  font-size: 14px;
  padding: 0.75rem 0;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
  display: block;
  text-decoration: none;
}

.boh-invite__signin-btn:active {
  transform: scale(0.95);
}

/* Main Content */
.boh-invite__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.boh-invite__header-box {
  text-align: center;
  padding: 1.5rem 0;
}

.boh-invite__illustration {
  width: 5rem;
  height: 5rem;
  background-color: var(--boh-color-surface);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  box-shadow: var(--boh-shadow-card);
}

.boh-invite__illustration svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--boh-color-primary);
}

.boh-invite__title {
  font-family: var(--boh-font-serif);
  color: var(--boh-color-primary);
  font-size: 24px;
  font-weight: var(--boh-font-weight-600);
  margin: 0 0 0.5rem 0;
}

.boh-invite__desc {
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent);
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
}

.boh-invite__form-group {
  display: flex;
  flex-direction: column;
}

.boh-invite__form-label {
  color: var(--boh-color-primary);
  font-weight: var(--boh-font-weight-700);
  font-size: 13px;
  margin-bottom: 0.5rem;
}

.boh-invite__input-row {
  display: flex;
  gap: 0.5rem;
}

.boh-invite__input {
  flex: 1;
  box-sizing: border-box;
  background-color: var(--boh-color-surface);
  border: 1px solid color-mix(in srgb, var(--boh-color-border) 10%, transparent);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: var(--boh-font-size-body);
  color: var(--boh-color-primary);
  outline: none;
  font-family: var(--boh-font-sans);
}

.boh-invite__input:focus {
  border-color: var(--boh-color-primary);
}

.boh-invite__send-btn {
  background-color: var(--boh-color-primary);
  color: var(--boh-color-surface);
  font-weight: var(--boh-font-weight-700);
  padding: 0 1.5rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.boh-invite__send-btn:active {
  transform: scale(0.95);
}

.boh-invite__send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Inline validation / confirmation under the email field. */
.boh-invite__feedback {
  font-size: 12px;
  margin: 0.5rem 0 0 0;
  color: var(--boh-color-primary);
}

.boh-invite__feedback--error {
  color: #A8584E;
}

/* Divider */
.boh-invite__divider-row {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}

.boh-invite__divider-line {
  flex-grow: 1;
  border-top: 1px solid color-mix(in srgb, var(--boh-color-border) 10%, transparent);
}

.boh-invite__divider-text {
  flex-shrink: 0;
  margin: 0 1rem;
  color: color-mix(in srgb, var(--boh-color-muted) 50%, transparent);
  font-size: 12px;
  font-weight: var(--boh-font-weight-700);
  text-transform: uppercase;
}

/* Sync Button */
.boh-invite__sync-btn {
  width: 100%;
  box-sizing: border-box;
  background-color: var(--boh-color-surface);
  border: 1px solid color-mix(in srgb, var(--boh-color-border) 10%, transparent);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--boh-color-primary);
  font-weight: var(--boh-font-weight-700);
  cursor: pointer;
  box-shadow: var(--boh-shadow-card);
  transition: transform 0.15s ease;
}

.boh-invite__sync-btn:active {
  transform: scale(0.98);
}

.boh-invite__sync-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Header styling */
.boh-invite__header {
  padding: 2.5rem var(--boh-space-screen) 0.625rem var(--boh-space-screen);
  flex-shrink: 0;
  background-color: var(--boh-color-bg);
  position: relative;
  z-index: 10;
}

.boh-invite__header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.boh-invite__header-back {
  padding: 0.5rem;
  margin-left: -0.5rem;
  color: var(--boh-color-primary);
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.boh-invite__header-back svg {
  width: 1.5rem;
  height: 1.5rem;
}

.boh-invite__header-title {
  font-family: var(--boh-font-sans);
  font-weight: var(--boh-font-weight-700);
  color: var(--boh-color-primary);
  font-size: var(--boh-font-size-navtitle);
  margin: 0;
}

.boh-invite__form-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


/* ── SPA client-render states ──────────────────────────────────────────────
   Added for BOH.SPA: data arrives asynchronously, so these pages need
   loading / error / empty placeholders the server-rendered BOH.Web did not. */
.boh-invite__loading,
.boh-invite__error {
  font-size: 13px;
  color: var(--boh-color-primary);
  padding: 1rem 0;
  text-align: center;
}

.boh-invite__error {
  color: #A8584E;
}
