.auth-shell {
  display: grid;
  grid-template-columns: minmax(20rem, 0.82fr) minmax(30rem, 1.18fr);
  min-height: calc(100vh - 3px);
  background: var(--cbcs-surface);
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 3px);
  padding: clamp(2.5rem, 6vw, 6rem);
  color: #ffffff;
  background: var(--cbcs-red);
}

.brand-panel__content {
  width: min(100%, 28rem);
}

.brand-panel__logo {
  display: block;
  width: clamp(10rem, 18vw, 13.5rem);
  height: auto;
  filter: brightness(0) invert(1);
}

.brand-panel__rule {
  width: 3rem;
  height: 2px;
  margin: clamp(3.5rem, 10vh, 7rem) 0 2rem;
  background: rgb(255 255 255 / 72%);
}

.brand-panel h1 {
  max-width: 11ch;
  color: #ffffff;
  font-size: clamp(2.75rem, 5.2vw, 5.25rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.brand-panel__copy {
  max-width: 33rem;
  margin-top: 1.75rem;
  color: rgb(255 255 255 / 88%);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.7;
}

.auth-stage {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 3px);
  background: var(--cbcs-surface);
}

.mobile-brand {
  display: none;
}

.auth-container {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: min(100%, 34rem);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6.5rem) 2rem 2.5rem;
  gap: 1.5rem;
}

.auth-container > div[id] {
  width: 100%;
}

.account-note {
  max-width: 28rem;
  padding-top: 1.25rem;
  color: var(--cbcs-gray);
  border-top: 1px solid var(--cbcs-line);
  font-size: 0.86rem;
  line-height: 1.65;
}

.auth-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: min(100%, 34rem);
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

.account-invitation-used {
  font-size: 1rem;
  line-height: 1.6;
}

.account-primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.625rem 1rem;
  color: #ffffff;
  background: var(--cbcs-red);
  font-family: var(--cbcs-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.account-primary-action:hover {
  color: #ffffff;
  background: var(--cbcs-red-deep);
}

@media (max-width: 56rem) {
  .auth-shell {
    display: block;
  }

  .brand-panel {
    display: none;
  }

  .auth-stage {
    min-height: calc(100vh - 3px);
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4.75rem;
    padding: 1rem clamp(1.5rem, 6vw, 3rem);
    border-bottom: 1px solid var(--cbcs-line);
  }

  .mobile-brand img {
    display: block;
    width: 9rem;
    height: auto;
  }

  .mobile-brand span {
    padding-left: 1rem;
    color: var(--cbcs-gray);
    border-left: 1px solid var(--cbcs-line-strong);
    font-family: var(--cbcs-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .auth-container {
    justify-content: flex-start;
    width: min(100%, 34rem);
    padding: clamp(3rem, 8vh, 5rem) clamp(1.5rem, 6vw, 3rem) 2.5rem;
  }

  .auth-meta {
    width: min(100%, 34rem);
    padding: 0 clamp(1.5rem, 6vw, 3rem) 1.75rem;
  }
}

@media (max-width: 30rem) {
  .mobile-brand {
    min-height: 4.25rem;
  }

  .mobile-brand img {
    width: 7.75rem;
  }

  .mobile-brand span {
    font-size: 0.64rem;
  }

  .auth-container {
    padding-top: 2.75rem;
  }

  .auth-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}
