:root {
  color: #182027;
  background: #eef1f3;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #eef1f3; }
button, input { font: inherit; letter-spacing: 0; }

.login-layout {
  display: grid;
  grid-template-columns: minmax(460px, 1.08fr) minmax(420px, .92fr);
  min-height: 100vh;
}

.visual {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background: #080b0e url("/assets/login-earth.jpg") center / cover no-repeat;
}

.visual-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(4, 9, 13, .38);
}

.visual-brand, .mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 720;
}

.visual-brand { position: absolute; top: 36px; left: 40px; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  color: #10171d;
  background: #a7e6ce;
  font-size: 17px;
  font-weight: 850;
}

.visual-copy { position: absolute; left: 40px; right: 40px; bottom: 72px; }
.kicker { margin: 0 0 13px; color: #377561; font-size: 11px; font-weight: 800; letter-spacing: 0; }
.visual .kicker { color: #a7e6ce; }
.visual h1 { margin: 0; max-width: 570px; font-size: 56px; line-height: 1.12; letter-spacing: 0; }

.visual-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: #d5dde1; font-size: 12px; }
.visual-meta span:first-child { display: flex; align-items: center; gap: 8px; color: #fff; }
.visual-meta i, .login-panel footer i { width: 7px; height: 7px; border-radius: 50%; background: #65d19f; box-shadow: 0 0 0 4px rgba(101, 209, 159, .16); }
.credit { position: absolute; right: 18px; bottom: 15px; margin: 0; color: rgba(255,255,255,.62); font-size: 10px; }

.login-panel {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
  padding: 52px clamp(42px, 7vw, 104px) 28px;
  background: #f7f8f8;
}

.mobile-brand { display: none; }
.form-wrap { width: 100%; max-width: 390px; margin: auto; }
.form-wrap h2 { margin: 0 0 10px; font-size: 31px; line-height: 1.2; }
.intro { margin: 0 0 32px; color: #69757d; font-size: 14px; }
.form-error { display: none; margin: 0 0 18px; padding: 11px 13px; border-left: 3px solid #bd584d; color: #843a33; background: #f8e9e7; font-size: 13px; }
.form-error.visible { display: block; }

form > label:not(.remember) { display: block; margin: 0 0 8px; color: #36424b; font-size: 13px; font-weight: 680; }
input[type="text"], input[type="password"] {
  width: 100%;
  height: 50px;
  margin: 0 0 20px;
  padding: 0 14px;
  border: 1px solid #cdd5da;
  border-radius: 6px;
  outline: 0;
  color: #172027;
  background: #fff;
  transition: border-color 130ms ease, box-shadow 130ms ease;
}

input[type="text"]:focus, input[type="password"]:focus { border-color: #3f816b; box-shadow: 0 0 0 3px rgba(63,129,107,.12); }
.password-field { position: relative; }
.password-field input { padding-right: 62px; }
.password-field button { position: absolute; top: 0; right: 3px; height: 50px; padding: 0 12px; border: 0; color: #36725e; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.password-field button:focus-visible { outline: 2px solid #3f816b; outline-offset: -4px; }

.remember { display: flex; align-items: center; gap: 9px; margin: 1px 0 24px; color: #5f6b73; font-size: 12px; cursor: pointer; }
.remember input { width: 16px; height: 16px; margin: 0; accent-color: #34735e; }
.submit { width: 100%; height: 50px; border: 0; border-radius: 6px; color: #fff; background: #172027; font-weight: 750; cursor: pointer; transition: background 130ms ease, transform 130ms ease; }
.submit:hover { background: #28353e; transform: translateY(-1px); }
.submit:focus-visible { outline: 3px solid #a8d5c6; outline-offset: 2px; }

.login-panel footer { display: flex; justify-content: space-between; width: 100%; margin-top: auto; color: #879198; font-size: 10px; }
.login-panel footer span:first-child { display: flex; align-items: center; gap: 8px; }
.login-panel footer i { width: 6px; height: 6px; box-shadow: none; }

@media (max-width: 860px) {
  .login-layout { grid-template-columns: 1fr; }
  .visual { min-height: 230px; height: 31vh; background-position: center 45%; }
  .visual-brand { display: none; }
  .visual-copy { left: 24px; right: 24px; bottom: 25px; }
  .visual h1 { font-size: 34px; }
  .visual-meta { margin-top: 14px; }
  .credit { right: 10px; bottom: 8px; }
  .login-panel { min-height: 69vh; padding: 28px 24px 20px; justify-content: flex-start; }
  .mobile-brand { display: flex; margin-bottom: 38px; }
  .mobile-brand .brand-mark { color: #fff; background: #172027; }
  .form-wrap { max-width: 430px; margin: 0 auto 48px; }
  .form-wrap h2 { font-size: 27px; }
}

@media (max-width: 480px) {
  .visual { min-height: 200px; height: 27vh; }
  .visual h1 { font-size: 29px; }
  .visual-meta span:nth-child(n+2) { display: none; }
  .mobile-brand { margin-bottom: 30px; }
  .login-panel { min-height: 73vh; padding-inline: 20px; }
  .login-panel footer { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
