:root { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #162238; background: #fff; }
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; min-height: 100%; }
button, input { font: inherit; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(460px, 46%) 1fr; }
.visual-panel { position: relative; overflow: hidden; min-height: 100vh; color: #fff; background: #07152d; }
.visual-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,12,28,.05), rgba(3,12,28,.03) 52%, rgba(3,12,28,.22)); pointer-events: none; }
.visual-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visual-brand { position: absolute; z-index: 1; top: 33px; left: 42px; display: flex; align-items: center; gap: 11px; }
.visual-brand span, .mobile-brand span { width: 31px; height: 34px; color: #338cff; }
.visual-brand svg, .mobile-brand svg { width: 100%; height: 100%; fill: currentColor; stroke: #fff; stroke-width: 1.05; stroke-linejoin: round; }
.visual-brand strong { font-size: 17px; }
.visual-copy { position: absolute; z-index: 1; left: 0; right: 0; bottom: 20%; text-align: center; }
.visual-copy h1 { margin: 0; font-size: clamp(30px, 3.2vw, 46px); letter-spacing: .1em; text-shadow: 0 4px 24px rgba(0,0,0,.25); }
.visual-copy p { margin: 17px 0 0; color: #aebdd2; font-size: 15px; letter-spacing: .14em; }
.form-panel { position: relative; display: grid; place-items: center; padding: 44px; background: #fff; }
.login-card { width: min(450px, 100%); }
.mobile-brand { display: none; }
.login-card header { margin-bottom: 42px; }
.login-card h2 { margin: 0; font-size: 34px; line-height: 1.2; letter-spacing: -.03em; }
.login-card header p { margin: 13px 0 0; color: #6c788c; font-size: 14px; }
.login-field { display: grid; gap: 10px; margin-bottom: 22px; }
.login-field > span { font-size: 14px; font-weight: 650; }
.login-field > div { position: relative; }
.login-field > div > svg { position: absolute; left: 15px; top: 16px; width: 21px; fill: none; stroke: #7c889a; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.login-field input { width: 100%; height: 56px; padding: 0 48px; border: 1px solid #d4dbe5; border-radius: 7px; outline: none; color: #1b2940; background: #fff; font-size: 14px; transition: .15s ease; }
.login-field input:focus { border-color: #1768e5; box-shadow: 0 0 0 4px rgba(23,104,229,.09); }
.login-field input::placeholder { color: #9aa4b3; }
.login-field button { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 6px; color: #778397; background: transparent; }
.login-field button:hover { background: #f2f4f7; }
.login-field button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.login-error { margin: -6px 0 14px; padding: 10px 12px; border-radius: 6px; color: #c6303b; background: #fff1f2; font-size: 12px; }
.login-button { width: 100%; height: 56px; margin-top: 8px; border: 0; border-radius: 7px; color: #fff; background: #1768e5; box-shadow: 0 8px 18px rgba(23,104,229,.2); font-size: 15px; font-weight: 700; cursor: pointer; }
.login-button:hover { background: #105dcc; }
.login-button:disabled { cursor: wait; opacity: .7; }
.security-note { margin-top: 30px; padding-top: 20px; display: flex; align-items: flex-start; gap: 12px; border-top: 1px solid #e4e8ee; }
.security-note span { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #1768e5; background: #eaf2ff; }
.security-note svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.security-note p { margin: 2px 0 0; color: #6f7b8d; font-size: 11px; line-height: 1.65; }
.login-card footer { margin-top: 108px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #8994a5; font-size: 10px; }
.login-card footer i { width: 1px; height: 11px; background: #cfd5de; }
@media (max-width: 880px) {
  .login-layout { grid-template-columns: 1fr; }
  .visual-panel { display: none; }
  .form-panel { min-height: 100vh; padding: 32px 22px; background: radial-gradient(circle at 50% 0, #eef5ff 0, #fff 38%); }
  .mobile-brand { margin-bottom: 55px; display: flex; align-items: center; gap: 10px; color: #15233b; font-size: 16px; font-weight: 750; }
  .login-card header { margin-bottom: 34px; }
  .login-card h2 { font-size: 29px; }
  .login-card footer { margin-top: 70px; }
}
@media (max-width: 420px) {
  .form-panel { place-items: start stretch; padding-top: 26px; }
  .login-card { width: 100%; }
  .login-field input, .login-button { height: 52px; }
  .login-field > div > svg { top: 14px; }
  .login-field button { top: 6px; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; } }
