.account {
  --chamfer: 24px;
  --panel-shape: polygon(var(--chamfer) 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer)), 0 var(--chamfer));
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
  background: radial-gradient(ellipse at 70% 40%, #123332 0%, #081a1b 44%, #041011 82%);
}

.account__header {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  min-height: 76px;
  padding: 12px clamp(20px, 3.5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #a2c2b12b;
  background: linear-gradient(90deg, #030d0ed1, #07161782);
}
.account__home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: #eadabb;
  font-size: 15px;
}
.account__home .icon { transform: rotate(180deg); }
.account__home:hover { color: #fff4d8; }

.account__scene {
  position: relative;
  display: flex;
  isolation: isolate;
  min-height: 100%;
  align-items: flex-end;
  padding: 38px clamp(27px, 6vw, 100px);
  background: #061818;
}
.account__scene picture, .account__scene picture img, .account__scene::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.account__scene picture { z-index: -2; }
.account__scene picture img { object-fit: cover; object-position: center 43%; }
.account__scene::after {
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, transparent 72%, #061617 100%),
              linear-gradient(0deg, #031010, transparent 29%);
}
.account__scene-caption {
  padding-left: 14px;
  border-left: 1px solid #b5955b;
  text-shadow: 0 2px 10px #030e11;
}
.account__scene-caption span {
  display: block;
  color: #a7c6bd;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.account__scene-caption p {
  margin-top: 6px;
  font: 570 clamp(23px, 2.5vw, 36px)/1.15 var(--display);
  color: #f3e8d0;
}

.account__main {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 112px clamp(22px, 5vw, 86px) 45px clamp(16px, 2vw, 34px);
}
.account__panel {
  position: relative;
  isolation: isolate;
  width: min(100%, 550px);
  padding: clamp(28px, 4vw, 55px);
}
.account__panel::before, .account__panel::after {
  position: absolute;
  content: "";
  pointer-events: none;
  clip-path: var(--panel-shape);
}
.account__panel::before {
  z-index: -2;
  inset: 0;
  background: linear-gradient(145deg, #f1d6a1, #756344 26%, #345e58 57%, #ac8957 100%);
}
.account__panel::after {
  z-index: -1;
  inset: 2px;
  border: 1px solid #526e60;
  background:
    linear-gradient(145deg, #101b1a87, transparent 28%, #031214b0 70%),
    radial-gradient(ellipse at 11% 10%, #224545, #0a2224 48%, #071617 94%);
  box-shadow: inset 0 0 0 5px #101d1ac9, inset 0 0 0 6px #8faf9135, inset 0 0 40px #001310;
}

.account__intro { margin-bottom: 24px; }
.account__emblem {
  display: inline-grid;
  place-items: center;
  margin-bottom: 15px;
  width: 44px;
  height: 44px;
  border: 1px solid #7e9b79;
  border-radius: 50%;
  color: #e4d8af;
  background: radial-gradient(circle at 44% 16%, #42786b, #092726 75%);
  box-shadow: inset 0 0 0 3px #0b2726, 0 3px 12px #031817b0;
}
.account__emblem .icon { width: 20px; height: 20px; stroke-width: 1.35; }
.account[data-phase="waiting"] .account__emblem { color: #f5d396; border-color: #d0a969; }
.account[data-phase="activate"] .account__emblem { color: #ddf5ad; border-color: #a3cb89; }
.account h1 {
  font: 680 clamp(30px, 3.6vw, 49px)/1.01 var(--display);
  letter-spacing: -.037em;
  text-wrap: balance;
}
.account h1:focus { outline: none; }
.account__intro p { margin-top: 12px; color: #c3d6ce; font-size: 16px; overflow-wrap: anywhere; }

.account__steps {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  gap: 7px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.account__steps li {
  display: flex;
  align-items: baseline;
  gap: 5px;
  border-top: 1px solid #38605b;
  padding-top: 7px;
  color: #a9c1ba;
  font-size: clamp(11px, 1.05vw, 13px);
  white-space: nowrap;
}
.account__steps li span { color: #9bb8ab; font-size: .88em; font-variant-numeric: tabular-nums; }
.account__steps li[aria-current="step"] {
  border-color: #edcd91;
  color: #ffe7b6;
  font-weight: 620;
}
.account__steps li[data-complete] { border-color: #7d9c78; }

.account__switch {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
  padding: 3px;
  border: 1px solid #426761;
  border-radius: 7px;
  background: #071d1e;
  box-shadow: inset 0 3px 8px #041517;
}
.account__switch a {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 44px;
  padding-inline: 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #bdd0c9;
  font-weight: 600;
}
.account__switch a:hover { color: #f9f1dd; }
.account__switch a[aria-current="page"] {
  border-color: #63998b;
  color: #f3edd6;
  background: linear-gradient(#315753, #163937);
  box-shadow: inset 0 1px #99c2ac54, 0 2px 6px #03151896;
}

.account__panel .button { width: 100%; }
.account__panel .account__action { justify-content: space-between; gap: 10px; text-align: left; white-space: normal; }
.account__panel .button--line { border-color: #749688; background: #082021; color: #daece2; }
.account__panel .button--line:hover { border-color: #b3d3c5; background: #153834; color: #f4fff3; }
.account__provider { display: grid; gap: 12px; margin-top: 15px; }
.account__divider { display: flex; align-items: center; gap: 12px; color: #bbd0c5; font-size: 14px; }
.account__divider::before, .account__divider::after { content: ""; flex: 1; height: 1px; background: #3b615a; }
.account form, .account__waiting, #signed-in { display: grid; gap: 12px; }
.account label { display: grid; gap: 5px; font-size: 15px; font-weight: 600; }
.account label small { color: #bfd1c9; font-weight: 400; }
.account input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #689086;
  border-radius: 4px;
  padding-inline: 12px;
  background: #061718;
  box-shadow: inset 0 2px 6px #0006;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.account input:focus-visible { outline-offset: 2px; }
.account__secret { position: relative; }
.account__secret input { padding-inline-end: 104px; }
.account__reveal {
  position: absolute;
  inset: auto 4px 3px auto;
  min-height: 44px;
  padding-inline: 8px;
  border: 0;
  background: #061718;
  color: #d4e3d9;
  font-size: 13px;
}
.account__reveal:hover { color: #fff1d2; }
.account .button:disabled { opacity: .75; cursor: not-allowed; font-variant-numeric: tabular-nums; }
.account__status {
  margin-bottom: 16px;
  border: 1px solid #486f66;
  border-radius: 4px;
  background: #061819cc;
  padding: 9px 13px;
  color: #d4e5dc;
  font-size: 14.5px;
  line-height: 1.45;
}
.account__status:empty { display: none; }
.account__status[data-error] { border-color: #d6856a; background: #26110ec9; color: #ffd4c1; }
.account__waiting > p { color: #c3d6ce; }
.account__address {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid #4f776e;
  border-radius: 4px;
  background: #061718;
  overflow-wrap: anywhere;
}
.account__address .icon { color: #edcd91; width: 20px; height: 20px; }
.account__link {
  justify-self: start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: #cee1d9;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: .23em;
}
.account__link:hover { color: #ffe7b6; }
.account__aside { margin-top: 21px; }
.account__aside .button--line { font-size: 15px; min-height: 48px; }
.account[data-phase="vk-only"] .account__panel { padding-block: clamp(38px, 5vw, 65px); }

.account__agree {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
  color: #c2d6ce;
}
.account__agree input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
}
.account__agree a { color: var(--gold); text-decoration: underline; text-underline-offset: .2em; }
.account__agree a:hover { color: var(--accent); }
.account__captcha { min-height: 0; }
.captcha-box {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #3b615a;
  border-radius: 4px;
  background: #061617;
}
.captcha-box__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.captcha-box__img {
  display: block;
  flex: 1 1 140px;
  min-width: 0;
  width: 192px;
  max-width: 192px;
  height: auto;
  aspect-ratio: 192 / 60;
  border: 1px solid #2b4a45;
  border-radius: 3px;
  background: #071718;
  object-fit: contain;
}
.captcha-box__reload {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #497168;
  border-radius: 3px;
  background: #0a2021;
  color: #e4ca92;
  font: 600 13.5px/1.2 var(--display);
  cursor: pointer;
  flex-shrink: 0;
}
.captcha-box__reload:hover { border-color: var(--gold); color: var(--ink); }
.captcha-box__reload:disabled { opacity: .55; cursor: wait; }
.captcha-box__field {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  color: #b9cfc7;
}
.captcha-box__field input {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 600;
}
.account__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #2e4d49;
}
.account__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #a9c1ba;
  font-size: 13.5px;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.account__legal a:hover { color: var(--gold); }

.account__box {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid #3b615a;
  border-radius: 4px;
  background: #061617;
}
.account__box h2 { font: 660 17px/1.3 var(--display); color: var(--ink); margin: 0; }
.account__box p { margin: 0; color: #c3d6ce; font-size: 14.5px; line-height: 1.48; }
[hidden] { display: none !important; }
.account__meta { display: grid; gap: 6px; }
.account__meta-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14.5px;
  color: #b7ccc4;
  padding: 6px 0 11px;
}
.account__meta-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #233f3b;
}
.account__meta-row:last-child { padding-bottom: 2px; }
.account__meta-row:last-child::after { display: none; }
.account__meta-row strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; text-align: right; }
.account__badge-ok { color: var(--accent) !important; }
.account__inline-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.account__inline-form .button { width: auto; min-height: 50px; padding-inline: 18px; font-size: 15px; }
.account__details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  cursor: pointer;
  color: #e6ca95;
  font: 600 15px/1.3 var(--display);
  list-style: none;
}
.account__details form { margin-top: 12px; }
.account__actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
}
.account__choices { display: grid; gap: 10px; }
.account__choice-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #497168;
  border-radius: 4px;
  background: #061819;
}
.account__choice-card span { font-size: 12.5px; color: var(--gold); font-family: var(--display); }
.account__choice-card strong { font-size: 17px; color: var(--ink); }
.account__choice-card small { font-size: 14px; color: var(--muted); }

@media (max-width: 1000px) and (min-width: 761px) {
  .account { grid-template-columns: minmax(0, 45%) minmax(0, 55%); }
  .account__main { padding-inline-end: 26px; }
  .account__panel { padding-inline: 29px; }
}

@media (max-width: 760px) {
  .account { display: block; }
  .account__header { position: relative; min-height: 63px; }
  .account__header .brand { gap: 8px; font-size: 14px; }
  .account__header .brand img { width: 34px; height: 34px; }
  .account__header .brand small { font-size: 11px; letter-spacing: .12em; }
  .account__home { font-size: 13px; }
  .account__scene { height: clamp(180px, 48vw, 275px); min-height: 0; padding: 14px 21px; }
  .account__scene picture img { object-position: center 48%; }
  .account__scene::after { background: linear-gradient(0deg, #041314 0%, transparent 67%); }
  .account__scene-caption { padding-left: 10px; }
  .account__scene-caption span { font-size: 11.5px; }
  .account__scene-caption p { margin-top: 2px; font-size: 18px; }
  .account__main { margin-top: 0; padding: 10px 16px 28px; }
  .account__panel { padding: 23px; --chamfer: 15px; }
  .account h1 { line-height: 1.08; text-wrap: pretty; }
  .account__emblem { margin-bottom: 10px; width: 38px; height: 38px; }
}
