.member-page {
  min-height: 100vh;
  color: #2e2925;
  background: #f5f1ea;
}

.member-header {
  position: sticky;
  top: 0;
  min-height: 76px;
  background: #171817;
  z-index: 50;
}

.member-top-nav {
  display: flex;
}

.member-main {
  width: min(1440px, 100%);
  min-height: calc(100vh - 76px);
  margin: 0 auto;
}

.member-kicker,
.member-section-heading p {
  margin: 0 0 8px;
  color: #bd3b31;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.member-auth {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  min-height: calc(100vh - 76px);
  background: #fff;
}

.member-auth-intro {
  display: grid;
  align-content: center;
  padding: clamp(54px, 8vw, 120px);
  color: #fff;
  background:
    linear-gradient(rgba(20, 16, 13, 0.68), rgba(20, 16, 13, 0.79)),
    url("../images/site/gloria-home-bg.jpg") center / cover;
}

.member-auth-intro h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-family: "Source Sans 3", sans-serif;
  font-size: clamp(2.45rem, 5vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.member-auth-intro > p:not(.member-kicker) {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.12rem;
  line-height: 1.7;
}

.member-benefit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin-top: 54px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.member-benefit-list span {
  display: grid;
  align-content: center;
  min-height: 118px;
  padding: 18px 24px 18px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.member-benefit-list span + span {
  padding-left: 24px;
}

.member-benefit-list span:last-child {
  border-right: 0;
}

.member-benefit-list b {
  color: #fff;
  font-size: 1.5rem;
}

.member-benefit-list small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
}

.member-auth-panel {
  position: relative;
  display: grid;
  align-content: center;
  padding: clamp(38px, 6vw, 88px);
  background: #fff;
}

.member-language {
  position: absolute;
  top: 28px;
  right: 34px;
  display: flex;
  gap: 4px;
}

.member-language button {
  width: 40px;
  height: 36px;
  color: #736a64;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-weight: 800;
}

.member-language button.active {
  color: #bd3b31;
  border-bottom-color: #bd3b31;
}

.member-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 34px;
  border-bottom: 1px solid #d9d4ce;
}

.member-auth-tabs button {
  min-height: 54px;
  color: #746c66;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-size: 1.05rem;
  font-weight: 800;
}

.member-auth-tabs button.active {
  color: #25211f;
  border-bottom-color: #bd3b31;
}

.member-form,
.member-profile-form {
  display: grid;
  gap: 18px;
}

.member-form[hidden],
.member-recovery-form[hidden],
.member-auth[hidden],
.member-dashboard[hidden] {
  display: none !important;
}

.member-form h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
}

.member-form label:not(.member-check),
.member-profile-form label:not(.member-check) {
  display: grid;
  gap: 7px;
  color: #514a45;
  font-weight: 700;
}

.member-form input,
.member-profile-form input,
.member-dashboard-actions select {
  min-height: 52px;
  width: 100%;
  padding: 0 14px;
  color: #24201e;
  background: #fff;
  border: 1px solid #cfc8c1;
  border-radius: 4px;
  font: inherit;
}

.member-form input:focus,
.member-profile-form input:focus,
.member-dashboard-actions select:focus {
  border-color: #bd3b31;
  box-shadow: 0 0 0 3px rgba(189, 59, 49, 0.12);
  outline: 0;
}

.member-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #6c635d;
  font-size: 0.9rem;
  line-height: 1.45;
}

.member-check input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 2px;
  accent-color: #bd3b31;
}

.member-primary,
.member-secondary,
.member-refresh {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 5px;
  font-weight: 800;
  text-align: center;
}

.member-primary {
  color: #fff;
  background: #bd3b31;
  border: 1px solid #bd3b31;
}

.member-primary:hover:not(:disabled) {
  background: #9f2e27;
  border-color: #9f2e27;
}

.member-primary:disabled,
.member-secondary:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.member-secondary,
.member-refresh {
  color: #423c38;
  background: #fff;
  border: 1px solid #bbb3ad;
}

.member-secondary:hover,
.member-refresh:hover {
  background: #f4f0eb;
}

.member-link-button {
  justify-self: start;
  padding: 2px 0;
  color: #8d322c;
  background: transparent;
  border: 0;
  font-weight: 700;
}

.member-message {
  min-height: 24px;
  margin: 18px 0 0;
  color: #6c635d;
  font-weight: 700;
}

.member-message[data-state="error"] {
  color: #a22d26;
}

.member-message[data-state="success"] {
  color: #2f7445;
}

.member-dashboard {
  padding: 46px clamp(20px, 5vw, 72px) 80px;
}

.member-dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 34px;
}

.member-dashboard-header h1 {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0;
}

.member-dashboard-header > div > p:last-child {
  margin: 6px 0 0;
  color: #746b64;
}

.member-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.member-dashboard-actions select {
  width: auto;
  min-width: 116px;
  min-height: 48px;
}

.member-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #d4cec7;
  border-radius: 8px;
  background: #fff;
}

.member-summary article {
  display: grid;
  min-height: 150px;
  align-content: center;
  gap: 5px;
  padding: 24px;
  border-right: 1px solid #ddd7d1;
}

.member-summary article:last-child {
  border-right: 0;
}

.member-summary span,
.member-summary small {
  color: #776e67;
}

.member-summary strong {
  font-size: 2rem;
  line-height: 1.1;
}

.member-section-nav {
  display: flex;
  gap: 4px;
  margin: 34px 0 0;
  overflow-x: auto;
  border-bottom: 1px solid #d3ccc5;
}

.member-section-nav button {
  min-width: max-content;
  min-height: 50px;
  padding: 0 20px;
  color: #6d655f;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-weight: 800;
}

.member-section-nav button.active {
  color: #2d2825;
  border-bottom-color: #bd3b31;
}

.member-section {
  display: grid;
  gap: 22px;
  padding: 38px 0 0;
}

.member-section[hidden] {
  display: none;
}

.member-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.member-section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: 0;
}

.member-section-copy {
  max-width: 820px;
  margin: -8px 0 10px;
  color: #6d655f;
  line-height: 1.65;
}

.member-record-list {
  display: grid;
  gap: 14px;
}

.member-record {
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8d2cb;
  border-radius: 8px;
}

.member-record > header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 19px 22px;
}

.member-record-reference {
  display: grid;
  gap: 3px;
}

.member-record-reference strong {
  font-size: 1.05rem;
}

.member-record-reference small,
.member-record-meta {
  color: #7a716b;
}

.member-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 11px;
  color: #5d4f45;
  background: #eee9e3;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.member-status.is-confirmed,
.member-status.is-preparing,
.member-status.is-seated {
  color: #875913;
  background: #fff0ce;
}

.member-status.is-ready,
.member-status.is-completed {
  color: #2c6c3e;
  background: #dff1e5;
}

.member-status.is-cancelled,
.member-status.is-no_show {
  color: #9b2f29;
  background: #f6dfdd;
}

.member-record details {
  border-top: 1px solid #e3ded8;
}

.member-record summary {
  padding: 13px 22px;
  color: #7e332d;
  cursor: pointer;
  font-weight: 800;
}

.member-order-items {
  margin: 0;
  padding: 0 22px 18px;
  list-style: none;
}

.member-order-items li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #ece8e3;
}

.member-order-items li:last-child {
  border-bottom: 0;
}

.member-empty {
  padding: 40px 24px;
  color: #766d66;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed #c8c0b9;
  border-radius: 8px;
  text-align: center;
}

.member-reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.member-reward {
  display: grid;
  min-height: 230px;
  align-content: start;
  gap: 12px;
  padding: 24px;
  background: #fff;
  border: 1px solid #d7d0c9;
  border-radius: 8px;
}

.member-reward h3,
.member-redemption-area h3,
.member-ledger-area h3 {
  margin: 0;
  font-size: 1.25rem;
}

.member-reward p {
  margin: 0;
  color: #736a63;
  line-height: 1.55;
}

.member-reward strong {
  color: #bd3b31;
  font-size: 1.5rem;
}

.member-reward button {
  align-self: end;
  margin-top: auto;
}

.member-redemption-area,
.member-ledger-area {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.member-redemption-code {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 17px 20px;
  background: #fff;
  border: 1px solid #d8d2cb;
  border-radius: 8px;
}

.member-redemption-code code {
  color: #922c26;
  font-size: 1rem;
  font-weight: 800;
}

.member-ledger-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 13px 2px;
  border-bottom: 1px solid #ddd6cf;
}

.member-ledger-row span {
  display: grid;
  gap: 2px;
}

.member-ledger-row small {
  color: #80766f;
}

.member-ledger-row strong.is-positive {
  color: #317346;
}

.member-ledger-row strong.is-negative {
  color: #a02f28;
}

.member-profile-form {
  width: min(660px, 100%);
  padding: 28px;
  background: #fff;
  border: 1px solid #d7d0c9;
  border-radius: 8px;
}

@media (max-width: 1080px) {
  .member-auth {
    grid-template-columns: 1fr;
  }

  .member-auth-intro {
    min-height: 520px;
  }

  .member-auth-panel {
    width: min(720px, 100%);
    margin: 0 auto;
  }

  .member-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-summary article:nth-child(2) {
    border-right: 0;
  }

  .member-summary article:nth-child(-n + 2) {
    border-bottom: 1px solid #ddd7d1;
  }

  .member-reward-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .member-header {
    min-height: 64px;
    padding: 0 16px;
  }

  .member-header .gf-brand {
    font-size: 1rem;
  }

  .member-top-nav a:not(.gf-cta) {
    display: none;
  }

  .member-top-nav .gf-cta-light {
    display: none;
  }

  .member-top-nav .gf-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .member-auth {
    min-height: calc(100vh - 64px);
  }

  .member-auth-intro {
    min-height: 430px;
    padding: 60px 22px;
  }

  .member-auth-intro h1 {
    font-size: 2.45rem;
  }

  .member-auth-intro > p:not(.member-kicker) {
    font-size: 1rem;
  }

  .member-benefit-list {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .member-benefit-list span,
  .member-benefit-list span + span {
    min-height: 72px;
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .member-auth-panel {
    padding: 88px 20px 50px;
  }

  .member-language {
    top: 24px;
    right: 18px;
  }

  .member-dashboard {
    padding: 28px 14px 60px;
  }

  .member-dashboard-header,
  .member-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .member-dashboard-actions {
    justify-content: flex-start;
  }

  .member-dashboard-actions > * {
    flex: 1 1 auto;
  }

  .member-summary {
    grid-template-columns: 1fr 1fr;
  }

  .member-summary article {
    min-height: 125px;
    padding: 16px;
  }

  .member-summary strong {
    font-size: 1.55rem;
  }

  .member-section-nav button {
    padding: 0 14px;
  }

  .member-record > header {
    grid-template-columns: 1fr auto;
    gap: 9px;
    padding: 16px;
  }

  .member-record-meta {
    grid-column: 1 / -1;
  }

  .member-reward-grid {
    grid-template-columns: 1fr;
  }

  .member-redemption-code {
    grid-template-columns: 1fr auto;
  }

  .member-redemption-code small {
    grid-column: 1 / -1;
  }

  .member-profile-form {
    padding: 20px;
  }
}
