:root {
  color-scheme: light;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #172033;
  background: #f4f7fb;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }

.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.08fr) minmax(420px, .92fr); }
.brand-panel {
  position: relative; overflow: hidden; padding: 54px 64px; display: flex; flex-direction: column;
  justify-content: space-between; color: white;
  background: radial-gradient(circle at 18% 18%, rgba(96, 165, 250, .8), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(45, 212, 191, .45), transparent 34%),
    linear-gradient(145deg, #0b1835 0%, #112d5a 52%, #0d5663 100%);
}
.brand-panel::after { content: ""; position: absolute; inset: 0; opacity: .24; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom right, black, transparent 72%); }
.brand-lockup, .brand-copy, .feature-row { position: relative; z-index: 1; }
.brand-lockup { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 20px; letter-spacing: .03em; }
.brand-logo { width: 48px; height: 48px; display: block; flex: 0 0 auto; border-radius: 14px; object-fit: cover; box-shadow: 0 12px 28px rgba(0,0,0,.2); }
.brand-copy { max-width: 640px; }
.eyebrow { margin: 0 0 16px; color: #77d5ff; font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.brand-copy h1 { margin: 0; max-width: 620px; font-size: clamp(42px, 5vw, 68px); line-height: 1.08; letter-spacing: -.045em; }
.brand-copy > p:last-child { margin: 26px 0 0; max-width: 560px; color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.8; }
.feature-row { display: flex; gap: 10px; flex-wrap: wrap; }
.feature-row span { padding: 9px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.78); font-size: 13px; backdrop-filter: blur(10px); }
.form-panel { display: grid; place-items: center; padding: 48px; background: linear-gradient(160deg, #fbfdff 0%, #eef3f9 100%); }
.login-card { width: min(430px, 100%); padding: 42px; border: 1px solid rgba(148,163,184,.24); border-radius: 28px; background: rgba(255,255,255,.88); box-shadow: 0 28px 80px rgba(28,48,76,.12); backdrop-filter: blur(18px); }
.mobile-brand { display: none; }
.login-card .eyebrow { color: #2379b8; margin-bottom: 10px; }
.login-card h2 { margin: 0; font-size: 34px; letter-spacing: -.035em; }
.form-intro { margin: 12px 0 30px; color: #718096; }
label { display: block; margin-top: 20px; }
label > span { display: block; margin-bottom: 9px; color: #39465a; font-size: 14px; font-weight: 650; }
input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid #d8e0ea; border-radius: 13px; outline: none; color: #172033; background: #fff; transition: .18s ease; }
input:focus { border-color: #318aca; box-shadow: 0 0 0 4px rgba(49,138,202,.12); }
.password-field { position: relative; }
.password-field input { padding-right: 68px; }
.password-field button { position: absolute; right: 9px; top: 8px; height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: #eef5fa; color: #2775a8; cursor: pointer; font-size: 13px; }
.remember-options { display: flex; align-items: center; gap: 24px; margin-top: 18px; }
.remember-option { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #526174; cursor: pointer; user-select: none; }
.remember-option input { width: 17px; height: 17px; margin: 0; padding: 0; accent-color: #1769aa; box-shadow: none; }
.remember-option span { display: inline; margin: 0; color: inherit; font-size: 13px; font-weight: 550; }
.feedback { min-height: 22px; margin: 16px 0 4px; color: #c53030; font-size: 13px; }
.submit-button { width: 100%; height: 52px; border: 0; border-radius: 14px; color: white; background: linear-gradient(135deg, #1769aa, #16899a); box-shadow: 0 12px 24px rgba(23,105,170,.22); cursor: pointer; font-weight: 750; transition: transform .18s ease, opacity .18s ease; }
.submit-button:hover { transform: translateY(-1px); }
.submit-button:disabled { opacity: .6; cursor: wait; transform: none; }
.security-note { margin: 18px 0 0; text-align: center; color: #8b97a8; font-size: 12px; }

@media (max-width: 860px) {
  .login-layout { display: block; min-height: 100vh; padding: 28px 18px; background: linear-gradient(155deg, #0d2445 0%, #156473 38%, #f0f5fa 38%); }
  .brand-panel { display: none; }
  .form-panel { min-height: calc(100vh - 56px); padding: 0; background: transparent; }
  .login-card { padding: 32px 24px; border-radius: 24px; }
  .mobile-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; font-weight: 750; }
  .mobile-brand .brand-logo { width: 42px; height: 42px; border-radius: 12px; }
}
