:root {
  color-scheme: dark;
  --ink: #1e1e1e;
  --paper: #ffffff;
  --muted: #a2a7ad;
  --line: #3b3d3e;
  --accent: #00d4c8;
  --danger: #ff8f8f;
  --focus: #00d4c8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--paper);
  font-weight: 700;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.account-header,
.account-footer {
  display: flex;
  min-height: 6rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem clamp(1.25rem, 5vw, 4rem);
  border-color: var(--line);
  border-style: solid;
  border-width: 0 0 1px;
}

.account-header img {
  display: block;
  width: 10.875rem;
  height: auto;
}

.back-link {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-underline-offset: 0.3em;
  text-transform: uppercase;
}

.account-layout {
  display: grid;
  width: min(100%, 78rem);
  min-height: calc(100vh - 12rem);
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 28rem);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  margin: 0 auto;
  padding: 4rem clamp(1.25rem, 5vw, 4rem);
}

.account-intro h1,
.account-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.account-intro h1 {
  max-width: 9ch;
  margin: 0.75rem 0 1.5rem;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 0.92;
}

.account-intro > p:not(.eyebrow) {
  max-width: 35rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.role-note {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.account-card {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  background: #242525;
}

.mode-tabs,
.method-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.mode-tabs {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.mode-tab {
  padding: 0.85rem;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.mode-tab.active {
  border-color: var(--accent);
  color: var(--paper);
}

.button {
  display: inline-flex;
  width: 100%;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 0;
  font-weight: 700;
  cursor: pointer;
}

.button:disabled,
.text-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.button-primary {
  color: var(--ink);
  background: var(--accent);
}

.button-outline {
  color: var(--paper);
  background: transparent;
}

.button:not(:disabled):hover {
  color: var(--paper);
  background: #006d67;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.account-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.account-form label {
  font-size: 0.82rem;
  font-weight: 700;
}

.account-form input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--paper);
  background: var(--ink);
}

.account-form input:disabled {
  color: var(--muted);
}

#password-field,
#otp-field {
  display: grid;
  gap: 0.75rem;
}

.field-help,
.customer-note,
.account-card > div > p,
.account-identity {
  color: var(--muted);
  font-size: 0.82rem;
}

.account-access {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.25rem 0;
  border-block: 1px solid var(--line);
}

.account-access > div {
  padding: 1rem 0;
}

.account-access > div + div {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.account-access dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-access dd {
  margin: 0.2rem 0 0;
  color: var(--paper);
  font-size: 0.9rem;
  text-transform: capitalize;
}

.text-button {
  padding: 0.35rem;
  border: 0;
  color: var(--muted);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

.notice {
  margin: 1rem 0 0;
  padding: 0.8rem;
  border-left: 3px solid var(--accent);
  color: var(--paper);
  background: #171818;
  font-size: 0.85rem;
}

.notice-error {
  margin-top: 0;
  border-color: var(--danger);
  color: var(--danger);
}

.account-card h2 {
  margin: 0.5rem 0 1rem;
  font-size: 2rem;
}

.account-footer {
  min-height: 6rem;
  border-width: 1px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[hidden] {
  display: none !important;
}

@media (max-width: 800px) {
  .account-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .account-intro h1 {
    font-size: clamp(3.5rem, 16vw, 5rem);
  }
}

@media (max-width: 480px) {
  .account-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-layout {
    padding-block: 3rem;
  }
}
