:root {
  color: #12233f;
  background: #edf2f8;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #edf2f8; }
button, input { font: inherit; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, .9fr) minmax(520px, 1.1fr); }
.brand-panel {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(42px, 6vw, 82px);
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 80% 18%, rgba(50, 128, 255, .35), transparent 31%),
    linear-gradient(145deg, #051b3e 0%, #082b62 56%, #0a3b88 100%);
}
.brand-panel::before, .brand-panel::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.brand-panel::before { width: 430px; height: 430px; right: -230px; bottom: 8%; }
.brand-panel::after { width: 250px; height: 250px; right: -105px; bottom: 18%; }
.brand-mark { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 15px; background: rgba(255,255,255,.12); box-shadow: 0 14px 30px rgba(0,0,0,.16); backdrop-filter: blur(12px); }
.brand-mark span { font-size: 27px; font-weight: 900; }
.brand-copy { max-width: 570px; margin-top: clamp(70px, 11vh, 130px); }
.eyebrow { margin: 0 0 16px; color: #8fb9ff; font-size: 12px; font-weight: 750; letter-spacing: 2.6px; }
.brand-copy h1 { margin: 0; font-size: clamp(38px, 4.5vw, 62px); line-height: 1.1; letter-spacing: -2px; }
.brand-copy > p:last-child { max-width: 520px; margin: 22px 0 0; color: #c2d4ee; font-size: 16px; line-height: 1.8; }
.feature-list { position: relative; z-index: 1; display: grid; gap: 20px; margin-top: 58px; }
.feature-list > div { display: flex; align-items: center; gap: 15px; }
.feature-list > div > span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.17); border-radius: 10px; color: #8eb8ff; background: rgba(255,255,255,.06); font-size: 11px; font-weight: 750; }
.feature-list p { display: grid; gap: 4px; margin: 0; }
.feature-list b { font-size: 14px; }
.feature-list small { color: #9fb5d5; font-size: 12px; }
.brand-panel footer { position: relative; z-index: 1; margin-top: auto; padding-top: 42px; color: #7792b8; font-size: 11px; letter-spacing: .5px; }
.form-panel { min-height: 100vh; display: grid; place-content: center; padding: 48px; background: linear-gradient(160deg, #f8fafc, #eaf0f8); }
.login-card { width: min(510px, 100%); padding: 54px 58px 48px; border: 1px solid #dce5f0; border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: 0 34px 90px rgba(28, 54, 88, .16); }
.environment { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 999px; color: #426185; background: #f0f5fb; font-size: 12px; font-weight: 650; }
.environment i { width: 8px; height: 8px; border-radius: 50%; background: #25af66; box-shadow: 0 0 0 4px #dcf5e6; }
.login-card h2 { margin: 32px 0 10px; color: #0c2348; font-size: 36px; letter-spacing: -.8px; }
.intro { margin: 0 0 36px; color: #71809a; font-size: 14px; line-height: 1.65; }
form > label { display: block; margin: 20px 0 9px; color: #344866; font-size: 13px; font-weight: 700; }
.input-wrap { height: 58px; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; padding: 0 16px; border: 1px solid #cbd7e7; border-radius: 12px; background: white; transition: border .15s ease, box-shadow .15s ease; }
.input-wrap:focus-within { border-color: #3476e8; box-shadow: 0 0 0 4px #e8f0ff; }
.input-wrap > span { color: #7e91ac; font-size: 11px; font-weight: 700; }
.input-wrap input { width: 100%; height: 55px; border: 0; outline: 0; color: #172c4b; background: transparent; font-size: 15px; }
.input-wrap input::placeholder { color: #a5b1c2; }
.password-toggle { padding: 7px 0 7px 12px; border: 0; color: #41689e; background: transparent; font-size: 12px; cursor: pointer; }
.login-error { margin-top: 16px; padding: 11px 13px; border: 1px solid #ffc1c1; border-radius: 9px; color: #b52d2d; background: #fff4f4; font-size: 13px; }
.submit-button { width: 100%; height: 58px; display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 28px; border: 0; border-radius: 12px; color: white; background: linear-gradient(135deg, #0d55cf, #176bec); box-shadow: 0 14px 28px rgba(18,97,237,.24); font-size: 16px; font-weight: 700; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.submit-button:hover { transform: translateY(-1px); box-shadow: 0 15px 28px rgba(18,97,237,.28); }
.submit-button:disabled { opacity: .62; cursor: wait; transform: none; }
.submit-button b { font-size: 20px; }
.security-note { display: flex; align-items: center; gap: 13px; margin-top: 32px; padding-top: 27px; border-top: 1px solid #e7edf4; }
.security-note > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: #20844d; background: #e7f7ed; font-size: 13px; font-weight: 800; }
.security-note p { display: grid; gap: 3px; margin: 0; }
.security-note b { color: #415674; font-size: 12px; }
.security-note small { color: #8b99ad; font-size: 11px; }
.support { margin: 25px 0 0; color: #8997aa; text-align: center; font-size: 12px; }
@media (max-width: 860px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 220px; padding: 28px 24px 34px; }
  .brand-mark { width: 43px; height: 43px; border-radius: 12px; }
  .brand-mark span { font-size: 21px; }
  .brand-copy { margin-top: 33px; }
  .brand-copy h1 { font-size: 31px; letter-spacing: -1px; }
  .brand-copy > p:last-child { margin-top: 13px; font-size: 13px; line-height: 1.6; }
  .eyebrow, .feature-list, .brand-panel footer { display: none; }
  .form-panel { min-height: calc(100vh - 220px); place-content: start center; padding: 0 16px 34px; }
  .login-card { width: min(500px, calc(100vw - 32px)); margin-top: -18px; padding: 40px 34px 36px; border-radius: 20px; }
  .login-card h2 { margin-top: 27px; font-size: 32px; }
}
@media (max-width: 520px) {
  .brand-panel { min-height: 190px; }
  .form-panel { min-height: calc(100vh - 190px); padding: 0 12px 28px; }
  .login-card { width: calc(100vw - 24px); padding: 34px 26px 31px; }
  .input-wrap { height: 55px; }
  .submit-button { height: 56px; }
}
