/* Dedicated sign-in styling. Intentionally isolated from the authenticated HRMS layout. */
body.hrms.login-page {
  display: block !important;
  min-height: 100vh;
  margin: 0;
  background: #f6f8fb;
  color: #172438;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.login-page * { box-sizing: border-box; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, 1.02fr) minmax(450px, .98fr); }
.login-brand-panel { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 100vh; padding: 38px clamp(32px, 5vw, 76px) 24px; color: #fff; background: linear-gradient(145deg, #142237 0%, #1c2e47 58%, #263c57 100%); }
.login-brand-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent 90%); }
.login-brand-panel::after { content: ""; position: absolute; z-index: -1; width: 470px; height: 470px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -180px; top: 17%; box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 95px rgba(255,255,255,.02); }
.brand-topline { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; background: #f5a623; color: #172438; font-weight: 900; letter-spacing: -1px; box-shadow: 0 7px 18px rgba(0,0,0,.15); }
.brand-mark span { font-size: 15px; }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1.05; letter-spacing: -.4px; }
.brand-wordmark strong { font-size: 19px; font-weight: 800; }
.brand-wordmark span { font-size: 12px; font-weight: 700; letter-spacing: 3px; margin-top: 5px; color: #c6d1df; }
.brand-tag { margin-left: auto; padding: 7px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #d4deea; font-size: 9px; letter-spacing: 1.4px; font-weight: 800; }
.brand-message { position: relative; z-index: 2; max-width: 520px; margin-top: clamp(58px, 9vh, 100px); }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #f8bd58; font-size: 10px; font-weight: 800; letter-spacing: 1.7px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #f5a623; box-shadow: 0 0 0 5px rgba(245,166,35,.12); }
.brand-message h1 { margin: 22px 0 18px; color: #fff; font-size: clamp(38px, 4.1vw, 58px); line-height: 1.07; font-weight: 800; letter-spacing: -2.2px; }
.brand-message h1 span { color: #f5a623; }
.brand-message > p { max-width: 430px; color: #c1cddd; font-size: 15px; line-height: 1.8; margin: 0; }
.feature-list { display: grid; gap: 19px; margin-top: 36px; }
.feature-item { display: flex; align-items: center; gap: 13px; }
.feature-icon { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border: 1px solid rgba(245,166,35,.45); border-radius: 9px; background: rgba(245,166,35,.12); color: #ffc45f; font-size: 15px; font-weight: 800; }
.feature-item b { display: block; color: #f4f7fb; font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.feature-item small { display: block; color: #aebdd0; font-size: 11px; }
.blueprint-art { position: absolute; z-index: 0; bottom: 50px; right: 3%; width: 47%; height: 210px; opacity: .6; pointer-events: none; }
.blueprint-sun { position: absolute; width: 130px; height: 130px; border-radius: 50%; right: 25px; top: 0; background: rgba(245,166,35,.09); border: 1px solid rgba(245,166,35,.24); }
.blueprint-building { position: absolute; bottom: 17px; border: 1px solid rgba(202,220,239,.45); background: repeating-linear-gradient(90deg, transparent 0 23px, rgba(202,220,239,.18) 24px 25px); }
.blueprint-building i { display: inline-block; width: 13px; height: 16px; margin: 15px 5px 0; border: 1px solid rgba(245,166,35,.62); }
.building-one { right: 100px; width: 170px; height: 145px; transform: skewY(-4deg); }
.building-two { right: 0; width: 110px; height: 95px; }
.building-two i { width: 10px; height: 11px; margin: 10px 3px 0; }
.blueprint-crane { position: absolute; right: 195px; top: 0; height: 150px; width: 4px; background: #f5a623; }
.blueprint-crane::before { content: ""; position: absolute; left: -66px; top: 7px; width: 135px; height: 3px; background: #f5a623; }
.blueprint-crane::after { content: ""; position: absolute; left: -57px; top: 10px; width: 2px; height: 25px; background: #f5a623; box-shadow: 37px 0 #f5a623, 74px 0 #f5a623; }
.blueprint-crane i { position: absolute; width: 50px; height: 2px; left: -45px; top: 22px; background: rgba(245,166,35,.75); transform: rotate(28deg); }
.blueprint-crane b { position: absolute; left: -5px; bottom: -12px; width: 14px; height: 14px; border: 2px solid #f5a623; border-radius: 50%; }
.blueprint-ground { position: absolute; bottom: 16px; left: 0; right: 0; height: 1px; background: rgba(202,220,239,.4); }
.brand-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 30px; color: #91a3b9; font-size: 9px; font-weight: 800; letter-spacing: 1.35px; position: relative; z-index: 2; }
.login-form-panel { min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 54px 32px 22px; background: #f7f9fc; }
.login-form-wrap { width: 100%; max-width: 410px; margin: auto 0; }
.mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 35px; }
.login-kicker { color: #c07b0c; font-size: 10px; font-weight: 800; letter-spacing: 2px; margin-bottom: 12px; }
.login-form-wrap h2 { margin: 0; color: #172438; font-size: clamp(25px, 2.5vw, 32px); font-weight: 800; letter-spacing: -1px; line-height: 1.2; }
.login-subtitle { margin: 11px 0 30px; color: #718096; font-size: 13px; line-height: 1.6; }
.login-form { display: grid; gap: 21px; }
.login-field label { display: block; margin-bottom: 9px; color: #2d3b50; font-size: 12px; font-weight: 750; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .hrms-input { min-height: 49px; width: 100%; padding: 12px 48px 12px 42px; border: 1px solid #dce3ec; border-radius: 10px; color: #172438; background: #fff; font-size: 13px; box-shadow: 0 2px 4px rgba(20,34,55,.025); transition: border-color .15s, box-shadow .15s; }
.input-wrap .hrms-input::placeholder { color: #a0acbb; }
.input-wrap .hrms-input:focus { outline: none; border-color: #e5a02b; box-shadow: 0 0 0 4px rgba(245,166,35,.13); }
.input-icon { position: absolute; left: 15px; z-index: 1; color: #8492a6; font-size: 15px; pointer-events: none; }
.field-help { margin-top: 8px; color: #8492a6; font-size: 10px; }
.password-label-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.password-label-row a { margin-bottom: 9px; color: #a96705; text-decoration: none; font-size: 11px; font-weight: 700; }
.password-label-row a:hover { text-decoration: underline; }
.password-toggle { position: absolute; right: 12px; border: 0; background: transparent; color: #697b91; padding: 5px; font-size: 11px; font-weight: 750; cursor: pointer; }
.login-submit { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 50px; margin-top: 4px; padding: 0 17px; border: 1px solid #e29a1a; border-radius: 10px; background: #f5a623; color: #172438; font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 7px 14px rgba(225,150,22,.17); transition: transform .15s, background .15s, box-shadow .15s; }
.login-submit:hover { background: #ffb52f; box-shadow: 0 9px 18px rgba(225,150,22,.23); transform: translateY(-1px); }
.login-submit:focus-visible { outline: 3px solid rgba(245,166,35,.35); outline-offset: 3px; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 27px 0 20px; }
.login-divider span { height: 1px; flex: 1; background: #e1e7ef; }
.login-divider small { color: #9aa6b5; font-size: 9px; font-weight: 800; letter-spacing: 1.4px; }
.login-help { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid #e4eaf2; border-radius: 10px; background: #fff; }
.help-icon { display: grid; place-items: center; flex: 0 0 21px; width: 21px; height: 21px; border-radius: 50%; background: #edf2f8; color: #60748d; font-family: Georgia, serif; font-weight: 800; font-size: 13px; }
.login-help p { margin: 0; color: #78869a; font-size: 11px; line-height: 1.7; }
.login-help strong { color: #2d3b50; font-size: 11px; }
.login-security { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 23px; color: #95a1b0; font-size: 10px; }
.form-footer { width: 100%; max-width: 700px; display: flex; justify-content: space-between; gap: 16px; color: #9aa5b4; font-size: 9px; margin-top: 34px; }
.login-error { display: flex; gap: 10px; align-items: flex-start; margin: -12px 0 20px; padding: 12px 14px; border: 1px solid #f1c8c8; border-radius: 9px; background: #fff2f2; color: #a32d2d; font-size: 12px; line-height: 1.5; }
.login-error > span { display: grid; place-items: center; flex: 0 0 18px; height: 18px; border-radius: 50%; background: #f7dada; font-weight: 800; }
@media (max-width: 900px) {
  .login-shell { grid-template-columns: minmax(310px, .85fr) minmax(400px, 1fr); }
  .login-brand-panel { padding-left: 32px; padding-right: 32px; }
  .brand-tag { display: none; }
  .brand-message h1 { font-size: 42px; }
  .blueprint-art { width: 65%; opacity: .35; }
}
@media (max-width: 700px) {
  .login-shell { display: block; min-height: 100vh; }
  .login-brand-panel { display: none; }
  .login-form-panel { min-height: 100vh; padding: 34px 22px 20px; }
  .login-form-wrap { max-width: 430px; }
  .mobile-brand { display: flex; }
  .login-form-wrap h2 { font-size: 28px; }
  .form-footer { flex-direction: column; align-items: center; text-align: center; margin-top: 32px; }
}
@media (max-height: 760px) and (min-width: 701px) {
  .login-brand-panel { padding-top: 24px; }
  .brand-message { margin-top: 42px; }
  .brand-message h1 { font-size: 43px; margin-top: 16px; margin-bottom: 12px; }
  .brand-message > p { font-size: 13px; }
  .feature-list { gap: 12px; margin-top: 22px; }
  .blueprint-art { height: 155px; bottom: 35px; opacity: .42; }
  .login-form-panel { padding-top: 30px; }
  .login-subtitle { margin-bottom: 22px; }
  .login-form { gap: 16px; }
}
