:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", "Inter", system-ui, sans-serif;
  font-synthesis: none;
  color: #142138;
  background: #f5f7fa;
  accent-color: #0756e2;
  --ink: #142138;
  --muted: #526278;
  --blue: #0756e2;
  --blue-hover: #0047c5;
  --line: #d9e1eb;
  --gutter: clamp(24px, 5vw, 80px);
  --site-width: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 3px solid #3575df; outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 2;
  inset: 12px auto auto 12px;
  translate: 0 -150%;
  padding: 10px 14px;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}
.skip-link:focus { translate: 0; }

.site-header, .home {
  width: min(var(--site-width), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  min-height: 86px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 680;
}
.brand img { display: block; border-radius: 10px; }

.home { padding-bottom: 46px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.46fr) minmax(330px, 1fr);
  gap: clamp(24px, 4vw, 64px);
  min-height: clamp(625px, calc(100svh - 132px), 786px);
}

.poster {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background: #07143b;
}
.poster-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center 64%;
}
.poster::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, #050f33bd 0%, #06133938 35%, #06133900 56%);
}
.poster-content { padding: clamp(36px, 5vw, 77px); }
.poster h1 {
  font-size: clamp(48px, 5.1vw, 76px);
  line-height: 1.13;
  letter-spacing: -0.045em;
  font-weight: 750;
}
.poster-line { display: block; }
.poster p {
  margin-top: 24px;
  max-width: 30rem;
  color: #dbe7fd;
  font-size: clamp(15px, 1.27vw, 18px);
  line-height: 1.7;
}

.account {
  display: grid;
  align-items: center;
  min-width: 0;
  padding: 36px clamp(24px, 4.1vw, 66px);
  border: 1px solid #e0e6ee;
  border-radius: 18px;
  background: #fff;
}
.account-inner { width: min(100%, 368px); margin-inline: auto; }
.account h2 {
  color: var(--ink);
  font-size: clamp(28px, 2.7vw, 39px);
  font-weight: 730;
  letter-spacing: -0.045em;
  line-height: 1.2;
}
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 26px 0 26px;
  border-bottom: 1px solid var(--line);
}
.auth-tabs button {
  position: relative;
  min-height: 42px;
  padding: 0 8px 8px;
  border: 0;
  border-radius: 4px 4px 0 0;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 650;
}
.auth-tabs button[aria-selected="true"] { color: var(--blue); }
.auth-tabs button[aria-selected="true"]::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: currentColor;
  content: "";
}
.auth-tabs button:hover { color: var(--blue); }

.panel-help {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
#change-panel, #reset-panel { margin-top: 26px; }
.auth-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 650; }
.field input {
  min-width: 0;
  width: 100%;
  min-height: 49px;
  padding: 0 14px;
  border: 1px solid #cfd8e5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}
.field input::placeholder { color: #66768c; }
.field input:hover { border-color: #a9b7ca; }
.field input:focus {
  outline: 2px solid #acc8f5;
  outline-offset: 1px;
  border-color: var(--blue);
}
.code-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.send-code {
  min-width: 106px;
  padding: 0 10px;
  border: 1px solid #cbdafa;
  border-radius: 8px;
  background: #f0f5ff;
  color: #0646b3;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.send-code:hover:not(:disabled) { background: #e6efff; }
.send-code:disabled {
  background: #f5f7fa;
  border-color: #dfe6ee;
  color: var(--muted);
  cursor: default;
}
.password-field { position: relative; }
.password-field input { padding-inline-end: 88px; }
.password-toggle {
  position: absolute;
  inset: 5px 5px 5px auto;
  min-width: 74px;
  padding: 0 5px;
  border: 0;
  border-radius: 5px;
  color: #465b76;
  background: transparent;
  font-size: 12px;
}
.password-toggle:hover { background: #eff3fa; }
.primary {
  min-height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.primary:hover:not(:disabled) { background: var(--blue-hover); }
.primary:active:not(:disabled) { background: #003da9; }
.primary:disabled { background: #5b6c87; cursor: default; }
.form-status {
  padding: 11px 12px;
  border-radius: 8px;
  background: #edf4ff;
  color: #234776;
  font-size: 13px;
  line-height: 1.6;
}
.form-error { background: #fff1f0; color: #932f26; }
.account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 20px;
  margin-top: 11px;
}
.text-button {
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #0750c5;
  font-size: 13px;
  font-weight: 600;
}
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.preview-note {
  margin-top: 21px;
  padding-top: 14px;
  border-top: 1px solid #e7ebf1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .hero { gap: 22px; grid-template-columns: minmax(0, 1.17fr) minmax(310px, 1fr); }
  .poster-content { padding: 46px 34px; }
  .poster h1 { font-size: clamp(40px, 5.6vw, 56px); }
  .account { padding-inline: 29px; }
}

@media (max-width: 720px) {
  :root { --gutter: clamp(15px, 4.5vw, 28px); }
  .site-header { min-height: 65px; }
  .brand img { width: 32px; height: 32px; border-radius: 8px; }
  .home { padding-bottom: 22px; }
  .hero { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .poster { min-height: clamp(264px, 55vw, 329px); border-radius: 13px; }
  .poster-image { object-position: center 73%; }
  .poster::before { background: linear-gradient(180deg, #050f33ea, #06133972 34%, transparent 63%); }
  .poster-content { padding: 23px; }
  .poster h1 { font-size: clamp(27px, 7.5vw, 42px); line-height: 1.15; }
  .poster-line { display: inline; margin-inline-start: 0.12em; }
  .poster p { margin-top: 9px; font-size: 13px; line-height: 1.55; max-width: 24em; }
  .poster-break { display: none; }
  .account { padding: 27px 23px 23px; border-radius: 13px; }
  .account h2 { font-size: 28px; }
  .auth-tabs { margin-block: 15px 20px; }
  .preview-note { margin-top: 16px; padding-top: 12px; }
}
