.account-site {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: radial-gradient(ellipse at 80% 15%, #e8efff, transparent 45%), var(--canvas);
}
.account-top,
.account-footer,
.account-main {
  width: min(100% - 72px, 1200px);
  margin-inline: auto;
}
.account-top,
.account-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.account-top { min-height: 83px; }
.account-brand,
.account-top nav,
.account-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.account-brand { color: var(--ink); text-decoration: none; }
.account-brand strong { display: block; font-size: 17px; }
.account-link { padding: 8px 12px; color: var(--ink); font-weight: 650; text-decoration: none; }
.account-link[aria-current="page"] { color: var(--blue); }
.account-main { display: grid; align-items: center; padding-block: 20px 42px; }
.account-hero,
.account-aside {
  color: #fff;
  background: radial-gradient(ellipse at 100% 0, #3d59aa, transparent 65%), linear-gradient(122deg, #142653, #244188);
  border-radius: 22px;
  box-shadow: 0 12px 32px #17387820;
}
.account-hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: clamp(24px, 6vw, 82px);
  align-items: center;
  padding: clamp(30px, 7vw, 90px);
  min-height: 460px;
}
.account-hero h1 {
  max-width: 620px;
  margin-block: 10px 16px;
  font-size: clamp(39px, 5vw, 72px);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.account-hero-copy > p:last-of-type {
  color: #e0e9ff;
  font-size: 16px;
  line-height: 1.75;
  max-width: 380px;
}
.account-actions { flex-wrap: wrap; margin-top: 24px; }
.account-actions .button { min-height: 42px; }
.account-flow {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.account-flow li {
  padding: 20px;
  border: 1px solid #cfdeff67;
  border-radius: 14px;
  background: #f0f6ff1a;
}
.account-flow strong { display: block; font-size: 17px; }
.account-flow span { display: block; color: #e2ebff; margin-top: 6px; line-height: 1.5; }
.account-footer { min-height: 67px; border-top: 1px solid var(--line); }
.account-footer a { color: var(--secondary); text-decoration: none; }
.account-footer a:hover, .account-link:hover { text-decoration: underline; }
.site-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px 14px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.site-legal a { color: inherit; text-underline-offset: 2px; }
#workbench > .main { display: flex; flex-direction: column; }
.workspace-footer {
  width: min(100% - 24px, 1516px);
  margin: auto auto 0;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}
.account-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 1.16fr);
  align-items: stretch;
  gap: 12px;
  width: min(100%, 940px);
  margin-inline: auto;
  padding: 10px;
  border: 1px solid #e4eaf5;
  border-radius: 27px;
  background: var(--surface);
  box-shadow: 0 22px 60px #19469b16;
}
.account-aside {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 392px;
  padding: clamp(25px, 4vw, 48px);
  background: linear-gradient(150deg, #12214a, #1a347d 68%, #2248a8);
  border-radius: 19px;
  box-shadow: none;
}
.account-aside::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 400px;
  height: 400px;
  right: -177px;
  bottom: -268px;
  border: 1px solid #ffbc716e;
  border-radius: 50%;
  background: radial-gradient(circle, #ff91275e, transparent 70%);
  box-shadow: 0 0 0 28px #e5a86a13, 0 0 0 58px #d1e4ff17, 0 0 0 93px #d1e4ff0c;
}
.account-aside h2 {
  font-size: clamp(31px, 3.5vw, 46px);
  letter-spacing: -.045em;
  line-height: 1.22;
}
.account-features {
  display: grid;
  gap: 12px;
  color: #e5edff;
  list-style: none;
  margin: 27px 0 0;
  padding: 0;
}
.account-features li { display: flex; align-items: center; gap: 10px; }
.account-features li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffac62;
  box-shadow: 0 0 0 4px #ffac6226;
}
.account-card {
  align-self: center;
  min-width: 0;
  padding: clamp(24px, 4vw, 44px);
}
.account-card h1 { font-size: 29px; letter-spacing: -.02em; line-height: 1.3; }
.account-card h1:focus { outline: none; }
.account-help { color: var(--muted); line-height: 1.65; margin-top: 8px; }
.account-form, .account-form fieldset {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.account-form { margin-top: 20px; }
.account-form fieldset { border: 0; margin: 0; padding: 0; }
.account-form label { display: grid; gap: 6px; color: var(--ink); font-weight: 620; }
.account-form .field { display: block; width: 100%; min-width: 0; min-height: 44px; font-weight: 450; }
.account-form .account-channels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  background: #f2f5fb;
  border: 1px solid #e6edf8;
  border-radius: 12px;
  padding: 4px;
}
.account-channels label { position: relative; cursor: pointer; }
.account-channels input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}
.account-channels span {
  display: grid;
  place-items: center;
  min-height: 36px;
  border-radius: 8px;
  color: var(--secondary);
}
.account-channels input:checked + span {
  background: var(--surface);
  box-shadow: 0 1px 5px #1b3e8420;
  color: var(--blue);
}
.account-channels input:focus-visible + span { outline: 3px solid #6289ff; outline-offset: 1px; }
.account-channels:disabled { opacity: .68; }
.account-phone, .account-password { position: relative; }
.account-country {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: var(--secondary);
}
.account-phone input { padding-inline-start: 48px; }
.account-password input { padding-inline-end: 66px; }
.account-password-toggle {
  position: absolute;
  right: 5px;
  bottom: 4px;
  min-width: 49px;
  min-height: 36px;
  padding: 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--secondary);
  font-weight: 620;
}
.account-password-toggle:hover { background: var(--blue-soft); color: var(--blue); }
.account-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.account-code-row button { min-height: 44px; }
.account-form button[type="submit"] { min-height: 45px; margin-top: 2px; }
.account-form button:disabled { opacity: .55; }
.account-message { color: var(--green); font-size: 13px; line-height: 1.55; margin-top: 12px; }
.account-message:empty { display: none; }
.account-message[data-tone="error"] { color: var(--red); }
.account-message[data-tone="info"] { color: var(--secondary); }
.account-form-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 16px; }
.account-form-links a { color: var(--blue); font-weight: 620; text-decoration: none; }
.account-form-links a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .account-top, .account-footer, .account-main { width: calc(100% - 28px); }
  .account-main { padding-bottom: 28px; }
  .account-hero, .account-form-layout { grid-template-columns: minmax(0, 1fr); }
  .account-hero { min-height: 0; gap: 22px; padding: clamp(22px, 6vw, 40px); }
  .account-flow li { padding: 14px; }
  .account-aside { display: none; }
  .account-form-layout { max-width: 490px; padding: 0; border-radius: 20px; }
  .account-card { padding: clamp(18px, 5vw, 36px); }
  .account-form .field { font-size: 16px; }
  .account-footer { gap: 8px 12px; padding-block: 12px; }
  .account-footer .site-legal { order: 1; width: 100%; }
}
@media (max-width: 360px) {
  .account-top nav { gap: 4px; }
  .account-top .account-link { padding-inline: 6px; }
  .account-top .button, .account-code-row button { padding-inline: 8px; }
}
