.redirect-panel {
  display: grid;
  min-height: 100vh;
  place-content: center;
  text-align: center;
}

.sign-in-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: #f7f8fb;
  padding: 1rem;
}

:root[data-intranet-theme=light] .sign-in-page {
  color-scheme: light;
  --canvas: #f4f5ef;
  --surface: #ffffff;
  --ink: #101318;
  --ink-muted: #65717e;
  --line: #d9dee5;
  --accent: #7048f2;
  --accent-hover: #5d37d9;
  --accent-ink: #ffffff;
  --amber: #b96b00;
  --shadow: 0 18px 50px rgba(16, 19, 24, 0.11);
  --site-canvas: #fbfcf7;
  --site-text-color: #202938;
  background: linear-gradient(180deg, rgba(112, 72, 242, 0.08), rgba(112, 72, 242, 0) 280px), var(--canvas);
  color: var(--ink);
}

:root[data-intranet-theme=dark] .sign-in-page {
  color-scheme: dark;
  --canvas: #0d1117;
  --surface: #151b23;
  --ink: #f2f5f8;
  --ink-muted: #a9b5c2;
  --line: #334155;
  --accent: #7048f2;
  --accent-hover: #8b5cf6;
  --accent-ink: #ffffff;
  --amber: #fbbf24;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  --site-canvas: #151b23;
  --site-text-color: #d7dce4;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.16), rgba(139, 92, 246, 0) 280px), var(--canvas);
  color: var(--ink);
}

.sign-in-panel {
  display: grid;
  gap: 1rem;
  width: min(440px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.sign-in-panel h1 {
  color: var(--ink);
}

.sign-in-actions {
  display: grid;
  gap: 0.65rem;
}

.sign-in-actions form {
  display: grid;
  gap: 0.65rem;
}

.sign-in-actions input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 0.75rem 0.85rem;
}

.sign-in-actions input:focus-visible {
  border-color: var(--accent);
  outline: 3px solid rgba(112, 72, 242, 0.2);
  outline-offset: 1px;
}

.sign-in-panel p {
  color: var(--ink-muted);
}

.customer-sign-in-page {
  min-height: 100dvh;
  background: radial-gradient(circle at 18% 18%, rgba(112, 72, 242, 0.16), transparent 32%), linear-gradient(180deg, rgba(16, 19, 24, 0.04), transparent 42%), var(--site-canvas);
  color: var(--ink);
  padding: clamp(1.25rem, 4vw, 3rem);
}

.customer-sign-in-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1fr);
  width: min(980px, 100%);
  min-height: min(620px, 100dvh - 3rem);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 26px 80px rgba(16, 19, 24, 0.14);
  overflow: hidden;
}

.customer-sign-in-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-elevated);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.customer-sign-in-close:hover,
.customer-sign-in-close:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  outline: none;
  transform: translateY(-1px);
}

.customer-sign-in-brand {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.85rem;
  border-right: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(112, 72, 242, 0.18), transparent 46%), linear-gradient(180deg, var(--surface-alt), var(--surface));
  padding: clamp(2rem, 5vw, 4rem);
}

.customer-sign-in-logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(1.1rem, 1.8vw, 1.7rem);
  font-weight: 900;
  text-decoration: none;
}

.customer-sign-in-logo-image {
  display: block;
  max-width: min(220px, 100%);
  height: auto;
}

.customer-sign-in-brand .eyebrow {
  margin: auto 0 0;
  color: var(--blue);
}

.customer-sign-in-brand h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.95;
}

.customer-sign-in-body {
  display: grid;
  align-content: center;
  gap: 1.15rem;
  padding: clamp(2rem, 4.5vw, 4rem);
}

.customer-sign-in-copy {
  max-width: 32rem;
  margin: 0;
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
}

.customer-sign-in-form {
  display: grid;
  gap: 0.75rem;
}

.site-floating-field {
  position: relative;
  display: grid;
  min-width: 0;
}

.site-floating-label {
  position: absolute;
  top: 1.05rem;
  left: 0.78rem;
  z-index: 1;
  color: var(--ink-muted);
  background: transparent;
  padding-inline: 0.22rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.1;
  pointer-events: none;
  transform-origin: left center;
  transition: top 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.site-floating-field.has-value:not(.is-invalid) .site-floating-label,
.site-floating-field:focus-within .site-floating-label {
  top: -0.52rem;
  color: var(--blue);
  background: var(--surface);
}

.site-floating-field.is-invalid .site-floating-label {
  top: -0.52rem;
  color: var(--danger, #b42318);
  background: var(--surface);
}

.site-floating-input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-elevated);
  color: var(--ink);
  font: inherit;
  padding: 1.08rem 1rem 0.42rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.site-floating-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(112, 72, 242, 0.18);
  outline: 0;
}

.site-floating-input[aria-invalid=true] {
  border-color: var(--danger, #b42318);
}

.site-floating-input[aria-invalid=true]:focus {
  border-color: var(--danger, #b42318);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14);
}

.customer-sign-in-field .validation-message {
  margin: 0.35rem 0 0;
  color: var(--danger, #b42318);
  font-size: 0.9rem;
  line-height: 1.35;
}

.customer-sign-in-form .button {
  min-height: 54px;
  border-radius: 8px;
  font-weight: 850;
}

.customer-sign-in-message {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.customer-sign-in-message.is-notice {
  color: var(--ink);
}

.customer-sign-in-message.is-error {
  color: var(--danger, #b42318);
}

.customer-sign-in-message.is-success {
  color: var(--success-ink, #007464);
}

.auth-error,
.auth-success {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}

.auth-error {
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger, #b42318);
}

.auth-success {
  background: rgba(0, 140, 120, 0.09);
  color: var(--success-ink, #007464);
}

.auth-warning {
  border: 1px solid #f0c36b;
  border-radius: 8px;
  background: #fff3d6;
  color: var(--amber);
  padding: 0.7rem 0.8rem;
}

.customer-profile-page {
  --customer-profile-sheen: rgba(255, 255, 255, 0.72);
  --customer-profile-highlight: rgba(255, 255, 255, 0.72);
  --customer-profile-panel-shadow: 0 1px 2px rgba(16, 19, 24, 0.05), 0 18px 48px rgba(16, 19, 24, 0.08);
  --customer-profile-card-shadow: 0 1px 2px rgba(16, 19, 24, 0.05), 0 10px 28px rgba(16, 19, 24, 0.06);
  min-height: 100dvh;
  background: linear-gradient(180deg, rgba(112, 72, 242, 0.045), transparent 24rem), var(--site-canvas);
  color: var(--ink);
  padding: clamp(1.25rem, 4vw, 4rem);
}

:root[data-site-theme=dark] .customer-profile-page {
  --customer-profile-sheen: rgba(255, 255, 255, 0.045);
  --customer-profile-highlight: rgba(255, 255, 255, 0.075);
  --customer-profile-panel-shadow: 0 1px 2px rgba(0, 0, 0, 0.22), 0 20px 54px rgba(0, 0, 0, 0.34);
  --customer-profile-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 12px 30px rgba(0, 0, 0, 0.26);
}

.customer-profile-shell {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.customer-profile-heading {
  display: grid;
  gap: 0.55rem;
  max-width: 48rem;
}

.customer-profile-heading .eyebrow,
.customer-profile-heading h1,
.customer-profile-heading p {
  margin: 0;
}

.customer-profile-heading h1 {
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.customer-profile-heading p {
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.6;
}

.customer-account-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 17rem) minmax(0, 1fr);
  gap: clamp(1.1rem, 2.4vw, 1.75rem);
  align-items: start;
}

.customer-account-sidebar {
  display: grid;
  gap: 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--customer-profile-sheen), transparent 7rem), var(--surface);
  box-shadow: var(--customer-profile-card-shadow);
  padding: 1rem;
}

.customer-account-sidebar-title {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.customer-account-sidebar-nav {
  display: grid;
  gap: 0.35rem;
}

.customer-account-sidebar-nav a,
.customer-account-sidebar-nav span {
  display: block;
  border-left: 3px solid transparent;
  color: var(--ink);
  font-weight: 750;
  padding: 0.65rem 0.7rem;
  text-decoration: none;
}

.customer-account-sidebar-nav a:hover,
.customer-account-sidebar-nav a:focus-visible {
  border-left-color: var(--blue);
  background: var(--surface-alt);
  outline: 0;
}

.customer-account-sidebar-nav span[aria-current=page] {
  border-left-color: var(--blue);
  background: var(--surface-alt);
  color: var(--blue);
}

.customer-account-sidebar-return {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.customer-account-sidebar-return:hover,
.customer-account-sidebar-return:focus-visible {
  color: var(--blue);
  outline: 0;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.customer-account-content {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.customer-profile-panel,
.customer-profile-form {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--customer-profile-sheen), transparent 9rem), var(--surface);
  box-shadow: var(--customer-profile-panel-shadow);
  padding: clamp(1.1rem, 3vw, 2rem);
}

.customer-profile-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.customer-profile-panel-header h2,
.customer-profile-panel-header p {
  margin: 0;
}

.customer-profile-section-label {
  color: var(--ink-muted);
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: uppercase;
}

.customer-profile-icon-action {
  display: inline-grid;
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-elevated);
  color: var(--blue);
  text-decoration: none;
}

.customer-profile-icon-action:hover,
.customer-profile-icon-action:focus-visible {
  border-color: var(--blue);
  background: var(--surface-alt);
  outline: 3px solid rgba(112, 72, 242, 0.18);
  outline-offset: 2px;
}

.customer-profile-detail-list,
.customer-profile-card-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.customer-profile-detail-list > div,
.customer-profile-card-list article {
  display: grid;
  gap: 0.25rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.customer-profile-detail-list > div:first-child,
.customer-profile-card-list article:first-child {
  border-top: 0;
  padding-top: 0;
}

.customer-profile-detail-list dt,
.customer-profile-card-list strong {
  color: var(--ink-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.customer-profile-detail-list dd {
  margin: 0;
  color: var(--ink);
}

.customer-profile-card-list span,
.customer-profile-card-list a,
.customer-profile-empty,
.customer-profile-section-help {
  margin: 0;
  color: var(--ink-muted);
}

.customer-profile-card-list a:hover,
.customer-profile-card-list a:focus-visible {
  color: var(--accent);
}

.customer-profile-form fieldset {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--customer-profile-sheen), transparent 6rem), var(--surface-alt);
  box-shadow: inset 0 1px 0 var(--customer-profile-highlight);
  padding: 1.05rem;
}

.customer-profile-form legend {
  color: var(--ink);
  font-weight: 850;
  padding: 0 0.35rem;
}

.customer-profile-section-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
}

.customer-profile-form label:not(.site-floating-field):not(.customer-profile-choice) {
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-weight: 700;
}

.customer-profile-form label:not(.site-floating-field):not(.customer-profile-choice) > span {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.customer-profile-form input:not(.site-floating-input),
.customer-profile-form select:not(.site-floating-input) {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-elevated);
  color: var(--ink);
  font: inherit;
  padding: 0 0.95rem;
  box-shadow: inset 0 1px 0 var(--customer-profile-highlight);
}

.customer-profile-form .site-floating-field {
  color: var(--ink);
  font-weight: 700;
}

.customer-profile-form .site-floating-input {
  min-height: 52px;
  background: var(--surface-elevated);
  box-shadow: inset 0 1px 0 var(--customer-profile-highlight);
}

.customer-profile-form input[type=search].site-floating-input {
  -webkit-appearance: none;
  appearance: textfield;
}

.customer-profile-form input[type=search].site-floating-input::-webkit-search-cancel-button,
.customer-profile-form input[type=search].site-floating-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.customer-profile-form select.site-floating-input {
  appearance: auto;
  padding-right: 2.35rem;
}

.customer-profile-form input[readonly],
.customer-profile-form .site-floating-input[readonly] {
  background: var(--surface-alt);
  color: var(--ink-muted);
}

.customer-profile-form input:not(.site-floating-input):focus,
.customer-profile-form select:not(.site-floating-input):focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(112, 72, 242, 0.18);
  outline: 0;
}

.customer-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.customer-profile-grid.three {
  grid-template-columns: minmax(0, 1.25fr) minmax(8rem, 0.6fr) minmax(9rem, 0.75fr);
}

.customer-profile-repeat-list {
  display: grid;
  gap: 0.85rem;
}

.customer-profile-repeat-row {
  display: grid;
  gap: 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--customer-profile-sheen), transparent 5.5rem), var(--surface);
  box-shadow: var(--customer-profile-card-shadow);
  padding: 0.95rem;
}

.customer-profile-repeat-row-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.7rem;
}

.customer-profile-repeat-row-header p {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 850;
}

.customer-profile-choice {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  align-self: end;
  min-height: 52px;
  color: var(--ink);
  font-weight: 750;
}

.customer-profile-choice input {
  width: 1.1rem;
  min-height: auto;
  height: 1.1rem;
}

.customer-profile-choice span {
  color: var(--ink);
  font-size: 0.95rem;
}

.customer-profile-add-row {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-self: start;
  min-height: 2.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--customer-profile-sheen), transparent), var(--surface);
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 0 0.85rem 0 0.7rem;
  box-shadow: 0 1px 2px rgba(16, 19, 24, 0.05);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.customer-profile-add-row svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.customer-profile-add-row:hover,
.customer-profile-add-row:focus-visible {
  border-color: var(--blue);
  background: var(--surface-elevated);
  box-shadow: 0 0 0 3px rgba(112, 72, 242, 0.16);
  outline: 0;
  transform: translateY(-1px);
}

.customer-profile-add-row:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.customer-profile-row-action {
  display: inline-grid;
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--customer-profile-sheen), transparent), var(--surface-elevated);
  color: var(--ink-muted);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 19, 24, 0.05);
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.customer-profile-row-action svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.customer-profile-row-action.is-danger {
  color: var(--danger, #b42318);
}

.customer-profile-row-action:hover,
.customer-profile-row-action:focus-visible {
  border-color: currentColor;
  background: rgba(180, 35, 24, 0.08);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
  outline: 0;
}

.customer-profile-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--customer-profile-sheen), transparent 4rem), var(--surface);
  box-shadow: inset 0 1px 0 var(--customer-profile-highlight);
  padding: 0.85rem;
}

.customer-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sign-in-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

@media (max-width: 820px) {
  .customer-sign-in-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .customer-sign-in-brand {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
    padding: 1.5rem;
  }
  .customer-sign-in-brand h1 {
    font-size: clamp(2.25rem, 12vw, 3.8rem);
  }
  .customer-sign-in-body {
    padding: 1.5rem;
  }
  .customer-profile-grid,
  .customer-profile-grid.three {
    grid-template-columns: 1fr;
  }
  .customer-account-layout {
    grid-template-columns: 1fr;
  }
  .customer-account-sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
