* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #edf3f9;
  color: #17345c;
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  min-height: 100dvh;
  padding: 28px;
  display: grid;
  place-items: center;
}
main {
  width: min(1160px, 100%);
  min-height: min(790px, calc(100dvh - 56px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 22px 65px #17345c18;
}
.visual {
  background:
    linear-gradient(90deg, #00163877, #00163811),
    url("/assets/background.png") center/cover;
  display: flex;
  flex-direction: column;
  padding: 48px;
  color: white;
}
.white-logo {
  width: 180px;
  height: auto;
}
.visual div {
  margin-top: 64px;
}
.visual h2 {
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 16px;
}
.visual p {
  font-size: 15px;
}
.visual small {
  margin-top: auto;
  padding-top: 50px;
  letter-spacing: 3px;
}
.form-panel {
  padding: 45px;
  display: grid;
  align-items: center;
}
.form-content {
  width: 100%;
  max-width: 370px;
  margin: auto;
}
.logo {
  display: block;
  width: 210px;
  max-width: 75%;
  margin: 0 auto 28px;
}
h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px;
}
.intro {
  font-size: 14px;
  color: #61758b;
  line-height: 1.7;
  margin: 0 0 24px;
}
form {
  display: grid;
  gap: 18px;
  margin: 0 0 20px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
}
input,
select {
  font: inherit;
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid #ccd9e6;
  border-radius: 10px;
  background: #f9fbfd;
  color: #17345c;
}
button {
  min-height: 49px;
  border: 0;
  border-radius: 10px;
  background: #176deb;
  color: white;
  font: inherit;
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.15s;
}
button:hover {
  background: #1058c3;
  transform: translateY(-1px);
}
button:active {
  transform: translateY(1px);
}
.secondary {
  color: #155fc8;
  background: #edf4fe;
}
.secondary:hover {
  background: #dceaff;
}
.links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
a {
  color: #225eb3;
  font-size: 14px;
  text-underline-offset: 4px;
}
a:hover {
  color: #123d7c;
}
.error {
  color: #a42d3e;
  background: #fff2f2;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
}
:focus-visible {
  outline: 3px solid #1755ad;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px;
  background: white;
  z-index: 2;
}
.skip:focus {
  top: 12px;
}
.form-content {
  animation: arrive 0.3s ease-out;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 760px) {
  body {
    padding: 12px;
  }
  main {
    display: block;
    min-height: 0;
    border-radius: 20px;
  }
  .visual {
    padding: 24px;
    min-height: 210px;
  }
  .white-logo {
    width: 135px;
  }
  .visual div {
    margin-top: 24px;
  }
  .visual h2 {
    font-size: 27px;
    margin: 0;
  }
  .visual p,
  .visual small {
    display: none;
  }
  .form-panel {
    padding: 32px 24px;
  }
  .logo {
    width: 175px;
    margin-bottom: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.white-logo {
  filter: brightness(0) invert(1);
}
.links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.links {
  flex-wrap: wrap;
  gap: 8px;
}
