.auth-access-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 100%;
  padding: 4px;
  border: 1px solid var(--border, #cbd3ce);
  background: var(--surface-muted, #eef1ef);
  border-radius: 6px;
}

.suite-access-splash {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(440px, 1.1fr);
  place-items: stretch;
  padding: 0;
  overflow: auto;
  background: #f1f4f2;
  color: #1e2923;
}

body[data-app="electrical"]:not(.is-authenticated) .app-shell {
  display: none;
}

body[data-app="electrical"].is-authenticated .auth-screen {
  display: none;
}

.auth-splash-context {
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  padding: clamp(34px, 7vh, 76px) clamp(30px, 5vw, 74px);
  border-right: 5px solid #d8a91f;
  background: #17211d;
  color: #f5f7f5;
}

.auth-suite-label {
  display: block;
  margin-bottom: 48px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
}

.auth-splash-context .eyebrow {
  color: #efc955;
}

.auth-splash-context h2 {
  max-width: 620px;
  margin: 8px 0 16px;
  color: #ffffff;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-destination {
  margin: 0;
  color: #b9c5bf;
  line-height: 1.55;
}

.auth-destination strong {
  color: #ffffff;
}

.auth-suite-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #425049;
  border-bottom: 1px solid #425049;
}

.auth-suite-index span {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 18px 12px 18px 0;
  color: #d7dfdb;
  font-size: 13px;
  font-weight: 700;
}

.auth-suite-index b {
  width: 34px;
  flex: 0 0 34px;
  color: #efc955;
  font-size: 11px;
}

.auth-splash-context small {
  color: #8fa098;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.suite-access-splash > .auth-card {
  align-self: center;
  justify-self: center;
  width: min(460px, calc(100vw - 52px));
  max-height: calc(100dvh - 40px);
  display: grid;
  gap: 17px;
  margin: 20px;
  padding: 30px;
  overflow: auto;
  border: 1px solid #cbd3ce;
  border-radius: 8px;
  background: #ffffff;
  color: #1e2923;
  box-shadow: 0 18px 50px rgb(17 28 22 / 16%);
}

.suite-access-splash > .auth-card.registration-card {
  width: min(700px, calc(100vw - 52px));
}

.suite-access-splash .auth-card .brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #d8a91f;
  color: #17211d;
  font-size: 13px;
  font-weight: 900;
}

.suite-access-splash .auth-card .eyebrow {
  margin: 0;
  color: #287262;
}

.suite-access-splash .auth-card h1 {
  margin: -7px 0 0;
  color: #1e2923;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.auth-login-intro {
  margin: -7px 0 2px;
  color: #637069;
  line-height: 1.5;
}

.suite-access-splash .auth-card > label {
  display: grid;
  gap: 7px;
  color: #29362f;
  font-size: 13px;
  font-weight: 800;
}

.suite-access-splash .auth-card input,
.suite-access-splash .auth-card select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #aeb9b3;
  border-radius: 4px;
  background: #ffffff;
  color: #17211d;
}

.suite-access-splash .auth-card input:focus,
.suite-access-splash .auth-card select:focus {
  border-color: #287262;
  outline: 3px solid rgb(40 114 98 / 16%);
}

.suite-access-splash .auth-card > .primary-button[type="submit"] {
  min-height: 46px;
}

.auth-login-notice {
  min-height: 20px;
  color: #a62e2e;
}

.auth-access-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted, #5b655f);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-access-tabs button.active {
  background: var(--surface, #fff);
  color: var(--ink, #202521);
  box-shadow: 0 1px 3px rgb(17 26 21 / 12%);
}

body[data-app] .auth-card.registration-card,
.registration-card {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.auth-card[hidden],
.registration-card[hidden],
.registration-success[hidden],
[data-registration-fields][hidden] {
  display: none !important;
}

.registration-intro,
.registration-policy {
  margin: 0;
  color: var(--muted, #5b655f);
  line-height: 1.5;
}

.registration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.registration-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--ink, #202521);
  font-size: 13px;
  font-weight: 700;
}

.registration-grid input {
  width: 100%;
  min-width: 0;
}

.registration-wide {
  grid-column: 1 / -1;
}

.registration-trap {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
}

.registration-actions,
.platform-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.registration-success {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-left: 4px solid #2f7350;
  background: #edf6f0;
  color: #1f4f38;
  border-radius: 4px;
}

.registration-success strong {
  font-size: 18px;
}

.registration-notice {
  min-height: 20px;
}

.registration-notice[data-tone="error"] {
  color: #a62e2e;
}

.registration-notice[data-tone="success"] {
  color: #276844;
}

.access-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--border, #cbd3ce);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: var(--ink, #202521);
  box-shadow: 0 24px 70px rgb(16 25 20 / 28%);
}

.access-dialog::backdrop {
  background: rgb(19 27 23 / 58%);
}

.registration-dialog-form {
  display: grid;
  gap: 18px;
  padding: 24px;
  overflow: auto;
}

.registration-dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border, #cbd3ce);
}

.registration-dialog-heading h2 {
  margin: 3px 0 0;
  font-size: 22px;
}

.registration-review-link p {
  color: var(--muted, #5b655f);
  line-height: 1.5;
}

.registration-request-table td {
  vertical-align: top;
}

.registration-request-person {
  display: grid;
  gap: 3px;
}

.registration-request-person small {
  color: var(--muted, #5b655f);
}

.registration-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.registration-request-actions select {
  min-width: 120px;
}

@media (max-width: 640px) {
  .registration-grid {
    grid-template-columns: 1fr;
  }

  .registration-wide {
    grid-column: auto;
  }

  .registration-card,
  .access-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .registration-dialog-form {
    padding: 18px;
  }

  .registration-actions > *,
  .registration-request-actions > * {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .suite-access-splash {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .auth-splash-context {
    min-height: auto;
    gap: 18px;
    padding: 24px 20px;
    border-right: 0;
    border-bottom: 4px solid #d8a91f;
  }

  .auth-suite-label {
    margin-bottom: 22px;
  }

  .auth-splash-context h2 {
    margin: 4px 0 10px;
    font-size: 29px;
  }

  .auth-suite-index {
    display: none;
  }

  .auth-splash-context small {
    display: none;
  }

  .suite-access-splash > .auth-card,
  .suite-access-splash > .auth-card.registration-card {
    width: min(680px, calc(100vw - 24px));
    max-height: none;
    margin: 18px 12px;
    padding: 22px;
  }
}
