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

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background: #0d0d0f;
}

button,
input { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

.shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  width: min(100% - 32px, 460px);
  margin: 0 auto;
  padding: 24px 0;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid #2b2b2f;
  border-radius: 12px;
  background: #18181b;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .32);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: #e50914;
}

.card-head { margin-bottom: 30px; }

.card-head h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.card-head p {
  margin: 0;
  color: #9b9ba3;
  font-size: 14px;
  line-height: 1.55;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #d7d7dc;
  font-size: 13px;
  font-weight: 650;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.label-row span {
  margin-bottom: 8px;
  color: #777780;
  font-size: 11px;
}

input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid #38383e;
  border-radius: 7px;
  outline: none;
  color: #fff;
  background: #111113;
  transition: border-color .15s, box-shadow .15s;
}

input::placeholder { color: #5f5f67; }

input:focus {
  border-color: #e50914;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, .12);
}

.pin-field { position: relative; }
.pin-field input { padding-right: 62px; }

.toggle-pin {
  position: absolute;
  top: 2px;
  right: 2px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  color: #aaaab2;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.toggle-pin:hover { color: #fff; }

.form-error {
  min-height: 20px;
  margin: 11px 0 5px;
  color: #ff7b83;
  font-size: 12px;
  line-height: 1.45;
}

.submit,
.reset {
  width: 100%;
  border-radius: 7px;
  font-weight: 700;
  cursor: pointer;
}

.submit {
  height: 48px;
  border: 1px solid #e50914;
  color: #fff;
  background: #e50914;
  transition: background .15s, border-color .15s;
}

.submit:hover {
  border-color: #c90812;
  background: #c90812;
}

.submit:disabled { cursor: wait; opacity: .6; }

.result {
  padding-top: 24px;
  border-top: 1px solid #303035;
}

.result-top p {
  margin: 0 0 5px;
  color: #62c879;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.result-top h2 {
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 18px;
  color: #85858e;
  font-size: 11px;
}

.result-meta span + span::before { content: "· "; }

.code-block,
.link-block {
  padding: 16px;
  border: 1px solid #333338;
  border-radius: 7px;
  background: #111113;
}

.link-block { margin-top: 10px; }

.code-block > span,
.link-block > span {
  display: block;
  margin-bottom: 8px;
  color: #85858e;
  font-size: 11px;
}

.code-block > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.code-block strong {
  color: #fff;
  font: 750 30px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}

.code-block button,
.link-block button {
  padding: 0;
  border: 0;
  color: #c3c3ca;
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  text-decoration: underline;
  cursor: pointer;
}

.link-block a {
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.link-block > button { float: right; margin-top: 2px; }

.reset {
  margin-top: 16px;
  padding: 11px;
  border: 1px solid #3a3a40;
  color: #d1d1d7;
  background: transparent;
}

.reset:hover { border-color: #55555d; background: #202024; }

@media (max-width: 520px) {
  .shell { width: min(100% - 20px, 460px); padding: 18px 0; }
  .card { padding: 27px 20px; border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
