:root {
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #152536;
  background: #edf2f5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button { cursor: pointer; }

.login-shell {
  display: grid;
  grid-template-columns: minmax(350px, 0.94fr) minmax(470px, 1fr);
  width: min(1040px, calc(100% - 72px));
  min-height: 620px;
  margin: max(48px, calc((100vh - 680px) / 2)) auto 48px;
  overflow: hidden;
  border: 1px solid rgba(25, 53, 70, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 36px 86px rgba(10, 35, 51, 0.13), 0 2px 8px rgba(10, 35, 51, 0.04);
}

.identity-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 620px;
  padding: 38px 44px 36px;
  overflow: hidden;
  color: #f4f8fb;
  background: radial-gradient(circle at 85% 85%, rgba(17, 103, 118, 0.34), transparent 40%), linear-gradient(145deg, #082537 0%, #061b2a 56%, #041522 100%);
}

.identity-panel::before {
  content: "";
  position: absolute;
  width: 510px;
  height: 510px;
  right: -200px;
  top: 72px;
  border: 1px solid rgba(116, 203, 202, 0.10);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(116, 203, 202, 0.025), 0 0 0 140px rgba(116, 203, 202, 0.018);
  pointer-events: none;
}

.identity-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.21;
  background-image: linear-gradient(rgba(164, 217, 225, 0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(164, 217, 225, 0.10) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent 15%, #000 100%);
  pointer-events: none;
}

.identity-top, .identity-message, .identity-footer { position: relative; z-index: 1; }
.identity-top { display: flex; align-items: center; gap: 12px; }
.brand-logo { display: block; width: 43px; height: 43px; border-radius: 11px; border: 1px solid rgba(255,255,255,.14); }
.brand-name strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: .07em; }
.brand-name span { display: block; margin-top: 3px; color: #82a8b6; font-size: 9px; letter-spacing: .19em; font-weight: 700; }
.identity-message { margin: 42px 0 56px; }
.identity-line { display: flex; align-items: end; gap: 5px; height: 28px; margin-bottom: 24px; }
.identity-line span { width: 3px; border-radius: 5px; background: #48d4c6; box-shadow: 0 0 15px rgba(72, 212, 198, .26); }
.identity-line span:nth-child(1) { height: 11px; opacity: .5; }
.identity-line span:nth-child(2) { height: 22px; opacity: .8; }
.identity-line span:nth-child(3) { height: 16px; }
.identity-line span:nth-child(4) { height: 28px; opacity: .7; }
.identity-kicker { margin: 0 0 13px; color: #6ad8cf; font-size: 10px; letter-spacing: .22em; font-weight: 800; }
.identity-message h2 { margin: 0; font-size: clamp(30px, 3vw, 40px); line-height: 1.37; letter-spacing: .055em; font-weight: 600; }
.identity-copy { max-width: 310px; margin: 18px 0 0; color: #a7bdc9; font-size: 13px; line-height: 1.85; }
.identity-footer { display: flex; align-items: center; gap: 9px; color: #91aebc; font-size: 11px; letter-spacing: .05em; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #5fd8c5; box-shadow: 0 0 0 4px rgba(95, 216, 197, .1); }

.form-panel { display: flex; flex-direction: column; justify-content: space-between; padding: 88px clamp(42px, 7vw, 96px) 34px; }
.form-inner { width: min(100%, 370px); margin: auto; }
.form-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: #527687; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.form-eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: #11bda9; }
h1 { margin: 0; color: #11283b; font-size: 31px; line-height: 1.3; letter-spacing: .035em; font-weight: 700; }
.form-description { margin: 10px 0 38px; color: #788995; font-size: 13px; line-height: 1.7; }
.field { margin-bottom: 21px; }
.field label { display: block; margin-bottom: 9px; color: #344b5c; font-size: 12px; font-weight: 700; }
.field input { display: block; width: 100%; height: 48px; padding: 0 15px; border: 1px solid #d6e0e7; border-radius: 9px; outline: none; background: #fbfcfd; color: #122b3d; font-size: 14px; transition: border-color .18s, box-shadow .18s, background .18s; }
.field input::placeholder { color: #a0aeb7; }
.field input:hover { border-color: #a9bdc9; }
.field input:focus-visible { border-color: #1688bd; box-shadow: 0 0 0 3px rgba(22, 136, 189, .13); background: #fff; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 62px; }
.password-toggle { position: absolute; top: 0; right: 7px; width: 52px; height: 48px; border: 0; background: transparent; color: #52798b; font-size: 12px; font-weight: 700; }
.password-toggle:hover { color: #137cb4; }
.password-toggle:focus-visible { outline: 2px solid #1688bd; outline-offset: -5px; border-radius: 8px; }
.form-error { min-height: 20px; margin: -5px 0 10px; color: #bd3c43; font-size: 12px; line-height: 1.6; }
.submit-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 49px; border: 0; border-radius: 9px; background: #136fac; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .03em; box-shadow: 0 8px 18px rgba(19, 111, 172, .17); transition: background .18s, transform .18s, box-shadow .18s; }
.submit-button:hover { background: #0d608f; transform: translateY(-1px); box-shadow: 0 11px 22px rgba(19, 111, 172, .22); }
.submit-button:focus-visible { outline: 3px solid rgba(19, 111, 172, .35); outline-offset: 3px; }
.submit-button:disabled { opacity: .72; cursor: wait; transform: none; }
.button-arrow { font-size: 18px; font-weight: 400; line-height: 1; }
.submit-button.is-loading .button-arrow { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; font-size: 0; animation: spin .7s linear infinite; }
.form-divider { height: 1px; margin: 31px 0 21px; background: #e8edf0; }
.privacy-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: #91a0a9; font-size: 11px; line-height: 1.7; }
.lock-icon { position: relative; display: inline-block; width: 15px; height: 16px; flex: none; }
.lock-icon::before { content: ""; position: absolute; top: 1px; left: 4px; width: 7px; height: 7px; border: 1.5px solid #8ea4ad; border-bottom: 0; border-radius: 5px 5px 0 0; }
.lock-icon::after { content: ""; position: absolute; bottom: 1px; left: 2px; width: 11px; height: 8px; border-radius: 2px; background: #8ea4ad; }
.form-footer { margin: 52px 0 0; color: #9baab3; text-align: center; font-size: 10px; letter-spacing: .04em; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .login-shell { grid-template-columns: minmax(280px, .75fr) minmax(400px, 1fr); width: calc(100% - 36px); }
  .identity-panel { padding: 34px 28px; }
  .form-panel { padding: 78px 36px 30px; }
}

@media (max-width: 700px) {
  .login-shell { display: block; width: min(480px, calc(100% - 28px)); min-height: 0; margin: 18px auto; border-radius: 17px; }
  .identity-panel { min-height: 180px; padding: 23px 26px 20px; }
  .identity-panel::before { width: 260px; height: 260px; right: -90px; top: -80px; }
  .identity-message { margin: 27px 0 0; }
  .identity-line, .identity-kicker, .identity-copy, .identity-footer { display: none; }
  .identity-message h2 { font-size: 21px; line-height: 1.35; }
  .identity-message h2 br { display: none; }
  .form-panel { min-height: 470px; padding: 34px 28px 25px; }
  .form-inner { width: 100%; }
  .form-description { margin-bottom: 29px; }
  .form-footer { margin-top: 35px; }
}

@media (max-width: 390px) {
  .login-shell { width: calc(100% - 20px); margin: 10px auto; }
  .identity-panel { padding: 20px 22px; }
  .form-panel { padding: 30px 22px 23px; }
  h1 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
