:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080b12;
  color: #edf1f7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 15% 10%,
      #1d293f 0%, transparent 45%),
    radial-gradient(ellipse at 80% 85%,
      #24202c 0%, transparent 40%),
    #080b12;
}

.shell {
  width: min(100% - 32px, 480px);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 45px 0 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 32px;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff992e, #fa5816);
  color: #fff;
  font-weight: 900;
  font-size: 29px;
}

.brand h1 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -.7px;
}

.brand h1 span { font-weight: 350; }

.brand p {
  color: #8b96ab;
  font-size: 10px;
  letter-spacing: 1.8px;
  margin: 5px 0 0;
}

.panel {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #293244;
  background: #141a26;
  box-shadow: 0 24px 75px #0007;
}

.topline {
  height: 3px;
  background: linear-gradient(90deg,
    #ef6c22, #ffb45a, #ef6c22);
}

.panel-content { padding: 33px; }

.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #ef923c;
  font-weight: 700;
  margin-bottom: 16px;
}

h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -.6px;
}

.subtitle {
  color: #9da9bc;
  line-height: 1.65;
  font-size: 14px;
  margin: 10px 0 26px;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 9px;
}

input, select {
  width: 100%;
  min-height: 47px;
  padding: 12px 13px;
  margin-bottom: 22px;
  background: #0e131d;
  border: 1px solid #344056;
  border-radius: 9px;
  color: #fff;
  font: inherit;
  font-size: 14px;
}

input:focus, select:focus {
  outline: 2px solid #f18a38;
  outline-offset: 1px;
}

button {
  min-height: 47px;
  padding: 12px 16px;
  border: 0;
  border-radius: 9px;
  background: #ef7929;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover { background: #fc8e38; }
button:disabled { opacity: .55; cursor: wait; }

button.link {
  background: transparent;
  color: #ffab66;
  display: block;
  margin: 15px auto 0;
  min-height: 35px;
  font-size: 12px;
}

.hidden { display: none; }

.status {
  margin-top: 15px;
  min-height: 18px;
  font-size: 12px;
  color: #f1b16a;
  line-height: 1.5;
}

.status.error { color: #ff8e8e; }

.notice {
  border: 1px solid #3f4454;
  background: #202735;
  border-radius: 9px;
  padding: 15px;
  color: #c2cada;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.secret {
  padding: 15px;
  background: #0a101a;
  border: 1px dashed #ef7929;
  border-radius: 9px;
  font: 14px ui-monospace, monospace;
  overflow-wrap: anywhere;
  margin-bottom: 25px;
  user-select: text;
}

.recovery-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.recovery-list div {
  padding: 12px 7px;
  text-align: center;
  border: 1px solid #354054;
  border-radius: 8px;
  background: #0e131d;
  font: 12px ui-monospace, monospace;
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: #667288;
  margin-top: 32px;
}

@media (max-width: 480px) {
  .panel-content { padding: 24px 20px; }
  .brand h1 { font-size: 22px; }
  .recovery-list { grid-template-columns: 1fr; }
}


/* 4F-5/3B — private enrollment QR */
.qr-area {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 18px 14px;
  margin-bottom: 22px;
  background: #0d1320;
  border: 1px solid #354056;
  border-radius: 12px;
}
.qr-code {
  width: 208px;
  height: 208px;
  padding: 8px;
  background: #fff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.qr-code img,
.qr-code canvas {
  max-width: 192px;
  max-height: 192px;
}
.qr-caption {
  margin: 16px 0 0;
  color: #b8c4d4;
  font-size: 12px;
  text-align: center;
  line-height: 1.6;
}
