:root {
  color-scheme: dark;
  --bg: #0b0e11;
  --panel: #101419;
  --panel-2: #151b22;
  --border: #2b3139;
  --text: #eaecef;
  --muted: #9aa4b2;
  --soft: #c5ccd6;
  --gold: #f0b90b;
  --gold-2: #fcd535;
  --green: #02c076;
  --red: #f6465d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--gold-2);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

.account-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(340px, 1fr);
  min-height: 100vh;
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(28px, 6vw, 72px);
  border-right: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(240, 185, 11, 0.16), rgba(15, 18, 22, 0) 45%),
    var(--panel);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--gold-2);
  color: var(--bg);
  font-weight: 800;
}

.eyebrow {
  margin: 0;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.96;
}

.lead {
  max-width: 560px;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.65;
}

.route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 520px;
  margin-top: 16px;
}

.route-list a {
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--soft);
  font-size: 13px;
}

.route-list a[aria-current="page"] {
  border-color: rgba(252, 213, 53, 0.65);
  color: var(--gold-2);
}

.form-panel {
  align-self: center;
  width: min(100%, 620px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px);
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
}

.panel-topline code {
  color: var(--gold-2);
}

.account-form {
  display: grid;
  gap: 16px;
}

.account-form[hidden] {
  display: none;
}

.account-form h2 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.05;
}

.account-form p {
  color: var(--muted);
  line-height: 1.55;
}

label {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 13px;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  outline: none;
}

input:focus {
  border-color: rgba(252, 213, 53, 0.78);
  box-shadow: 0 0 0 3px rgba(252, 213, 53, 0.12);
}

button,
.sensitive-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--gold-2);
  color: var(--bg);
  padding: 10px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.secondary-action {
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
}

.switch-line {
  font-size: 13px;
  text-align: center;
}

.status-box {
  display: none;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--panel-2);
  color: var(--soft);
  line-height: 1.5;
}

.status-box[data-tone="success"],
.status-box[data-tone="error"] {
  display: block;
}

.status-box[data-tone="success"] {
  border-color: rgba(2, 192, 118, 0.42);
  color: #a7f3cf;
}

.status-box[data-tone="error"] {
  border-color: rgba(246, 70, 93, 0.42);
  color: #ffb6c0;
}

.secret-box {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(252, 213, 53, 0.32);
  border-radius: 8px;
  padding: 12px;
  background: rgba(252, 213, 53, 0.08);
}

.secret-box[hidden] {
  display: none;
}

.secret-box span {
  color: var(--muted);
  font-size: 12px;
}

.secret-box code {
  overflow-wrap: anywhere;
  color: var(--text);
}

.sensitive-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  border: 1px solid rgba(246, 70, 93, 0.36);
  border-radius: 8px;
  padding: 16px;
  background: rgba(246, 70, 93, 0.08);
}

.sensitive-card[data-unlocked="true"] {
  border-color: rgba(2, 192, 118, 0.42);
  background: rgba(2, 192, 118, 0.08);
}

.lock-label {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.sensitive-card[data-unlocked="true"] .lock-label {
  color: var(--green);
}

.sensitive-card h3 {
  margin-top: 4px;
  font-size: 17px;
}

.sensitive-card p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 860px) {
  .account-shell {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 28px;
  }

  .form-panel {
    align-self: start;
  }
}

@media (max-width: 520px) {
  .route-list {
    grid-template-columns: 1fr;
  }

  .sensitive-card {
    align-items: stretch;
    flex-direction: column;
  }
}
