:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: #d8d9da;
  background: #111217;
  font-size: 14px;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
main { width: min(100%, 448px); margin: 0 auto; padding: 64px 24px 28px; }
header { text-align: center; margin-bottom: 28px; }
.mark {
  display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 16px;
  border-radius: 12px; background: #ff9830; color: #111217;
  font-size: 17px; font-weight: 750; letter-spacing: -.5px;
}
h1 { margin: 0; font-size: 25px; font-weight: 500; letter-spacing: -.5px; color: #f4f5f5; }
.eyebrow { margin: 6px 0 0; font-size: 13px; color: #a0a3ad; }
section { padding: 28px; background: #181b1f; border: 1px solid #2c3235; border-radius: 8px; }
h2 { margin: 0 0 6px; color: #f4f5f5; font-size: 20px; font-weight: 500; letter-spacing: -.2px; }
.intro { margin: 0 0 24px; color: #a0a3ad; font-size: 13px; line-height: 1.6; }
label { display: block; margin: 16px 0 7px; font-size: 13px; font-weight: 500; color: #d8d9da; }
input {
  display: block; width: 100%; min-height: 40px; margin: 0; padding: 9px 12px;
  border: 1px solid #44474f; border-radius: 4px; outline: none;
  background: #111217; color: #f4f5f5; font: inherit;
  transition: border-color .12s, box-shadow .12s;
}
input::placeholder { color: #8e919c; opacity: 1; }
input:hover { border-color: #6e7180; }
input:focus { border-color: #6e9fff; box-shadow: 0 0 0 2px #3274d933; }
input:-webkit-autofill { -webkit-text-fill-color: #f4f5f5; box-shadow: 0 0 0 1000px #111217 inset; caret-color: #f4f5f5; }
.actions { display: flex; flex-direction: column; gap: 0; margin-top: 24px; }
button {
  display: inline-flex; justify-content: center; align-items: center; width: 100%; min-height: 40px;
  padding: 9px 16px; border: 1px solid #3d71d9; border-radius: 4px;
  background: #3d71d9; color: #fff; font: inherit; font-weight: 500; cursor: pointer;
  transition: background .12s, border-color .12s;
}
button:hover { background: #4c80e8; border-color: #4c80e8; }
button:focus-visible, a:focus-visible { outline: 2px solid #8ab8ff; outline-offset: 3px; }
button:disabled { opacity: .5; cursor: wait; }
.secondary { background: transparent; border-color: #44474f; color: #d8d9da; }
.secondary:hover { background: #22252b; border-color: #6e7180; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #a0a3ad; font-size: 12px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: #2c3235; }
.muted { margin: 20px 0 0; color: #a0a3ad; font-size: 12px; line-height: 1.6; }
#status { min-height: 21px; margin: 14px 0 0; text-align: center; color: #b5b8c3; font-size: 13px; overflow-wrap: anywhere; }
#status:empty { min-height: 0; margin: 0; }
footer { margin: 24px 0 0; text-align: center; color: #a0a3ad; font-size: 12px; line-height: 1.9; }
footer > span:last-child { color: #8e919c; }
footer > span[aria-hidden] { padding: 0 5px; }
a { color: #8ab8ff; text-decoration: none; }
a:hover { text-decoration: underline; }
#account h2 { overflow-wrap: anywhere; font-size: 18px; margin-top: 8px; }
#account > p:not(.eyebrow) { color: #a0a3ad; }
#account button { margin-top: 12px; }
[hidden] { display: none !important; }
@media (max-width: 480px) {
  main { padding: 32px 20px 24px; }
  section { padding: 24px 20px; }
  h1 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { input, button { transition: none; } }

.social-actions { display: grid; gap: 10px; margin: 20px 0; }
.social-actions .muted { margin: 0; }
.social-actions button:disabled { cursor: not-allowed; }

.social-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-inline: 12px; }
.social-actions .social-icon { width: 100%; height: 48px; min-height: 48px; padding: 12px; border-radius: 10px; }
.social-actions .social-icon--yandex { background: #fc3f1d; border-color: #fc3f1d; }
.social-actions .social-icon--vk { background: #0077ff; border-color: #0077ff; }
.social-icon img { display: block; width: 24px; height: 24px; }
.social-icon:not(:disabled):hover { filter: brightness(1.12); }
#account .social-icon { margin-top: 0; }
