:root {
  --ink: #112b33;
  --muted: #71878d;
  --line: #dce7e8;
  --brand: #08a7e8;
  --brand-dark: #007aab;
  --canvas: #edf3f2;
  --danger: #bd4b46;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.login-shell { display: grid; grid-template-columns: minmax(420px, 1.08fr) minmax(440px, .92fr); min-height: 100vh; }
.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 42px clamp(38px, 5vw, 76px);
  color: #fff;
  background:
    radial-gradient(circle at 8% 8%, rgba(31, 190, 234, .26), transparent 28%),
    radial-gradient(circle at 95% 82%, rgba(30, 157, 188, .18), transparent 27%),
    linear-gradient(145deg, #0d3038 0%, #071d23 70%, #0b272e 100%);
}
.brand-panel::before {
  content: "";
  position: absolute;
  right: -170px;
  bottom: -160px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(104, 220, 244, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(104, 220, 244, .025), 0 0 0 104px rgba(104, 220, 244, .018);
}
.brand-lockup { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.brand-lockup img { width: 102px; height: 90px; object-fit: contain; padding: 7px; border-radius: 14px; background: #fff; }
.brand-lockup span { color: #8fb4bc; font-size: 9px; font-weight: 700; letter-spacing: .19em; }
.brand-copy { position: relative; z-index: 1; max-width: 600px; margin: 70px 0; }
.eyebrow { margin: 0 0 14px; color: #66d6f4; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.brand-copy h1 { margin: 0; font-size: clamp(40px, 4.7vw, 69px); line-height: 1.13; letter-spacing: -.055em; }
.intro { max-width: 500px; margin: 21px 0 0; color: #a8c2c8; font-size: 14px; line-height: 1.85; }
.module-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 27px; }
.module-list span { padding: 7px 11px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 99px; color: #c8e0e4; background: rgba(255, 255, 255, .045); font-size: 10px; }
.brand-footer { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; color: #789ba3; font-size: 9px; }
.brand-footer span { display: flex; align-items: center; gap: 8px; }
.brand-footer i { width: 7px; height: 7px; border-radius: 50%; background: #4dd5a8; box-shadow: 0 0 0 4px rgba(77, 213, 168, .1); }

.form-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 45px 28px;
  background:
    linear-gradient(rgba(237, 243, 242, .92), rgba(237, 243, 242, .98)),
    linear-gradient(90deg, rgba(14, 52, 61, .045) 1px, transparent 1px),
    linear-gradient(rgba(14, 52, 61, .045) 1px, transparent 1px);
  background-size: auto, 30px 30px, 30px 30px;
}
.mobile-brand { display: none; }
.login-card {
  width: min(400px, 100%);
  padding: 36px;
  border: 1px solid rgba(211, 225, 226, .94);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 70px rgba(12, 42, 49, .11);
}
.card-mark { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 29px; border-radius: 12px; color: #fff; background: var(--brand); font-size: 13px; font-weight: 800; box-shadow: 0 8px 20px rgba(8, 167, 232, .24); }
.login-card .eyebrow { color: var(--brand-dark); }
.login-card h2 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.form-subtitle { min-height: 38px; margin: 9px 0 22px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.error-message { margin: 0 0 14px; padding: 9px 11px; border: 1px solid #f3ceca; border-radius: 8px; color: var(--danger); background: #fff4f3; font-size: 10px; }
.field { display: block; margin-top: 14px; }
.field > span { display: block; margin-bottom: 7px; color: #526b71; font-size: 10px; font-weight: 700; }
.field input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; color: var(--ink); background: #fbfdfd; font-size: 12px; }
.field input:focus { border-color: #8fd4eb; background: #fff; box-shadow: 0 0 0 3px rgba(8, 167, 232, .08); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 54px; }
.password-wrap button { position: absolute; top: 0; right: 8px; height: 43px; padding: 0 6px; border: 0; background: transparent; color: var(--brand-dark); font-size: 9px; font-weight: 700; cursor: pointer; }
.submit-button { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; gap: 9px; margin-top: 22px; border: 0; border-radius: 10px; color: #fff; background: var(--brand); box-shadow: 0 9px 20px rgba(8, 167, 232, .2); font-size: 12px; font-weight: 800; cursor: pointer; }
.submit-button:hover { background: var(--brand-dark); }
.submit-button:disabled { opacity: .6; cursor: default; }
.security-note { margin: 16px 0 0; color: #8a9b9f; font-size: 9px; line-height: 1.6; text-align: center; }
.local-note { position: absolute; bottom: 20px; margin: 0; color: #91a2a5; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 880px) {
  .login-shell { display: block; background: #fff; }
  .brand-panel { display: none; }
  .form-panel { min-height: 100vh; padding: 90px 18px 55px; }
  .mobile-brand { position: absolute; top: 22px; left: 24px; display: flex; align-items: center; gap: 9px; }
  .mobile-brand img { width: 56px; height: 50px; object-fit: contain; }
  .mobile-brand::after { content: "JKBMS OPS"; color: #24464f; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
  .login-card { padding: 27px 23px; }
}
