:root {
  --navy: #0b3158;
  --ink: #172b3a;
  --green: #087f71;
  --line: #cfdae1;
  --muted: #607481;
  --paper: #f2f5f6;
  --amber: #c2872d;
  --violet: #765aa0;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Segoe UI", Arial, sans-serif; }

.login-shell {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(360px, .75fr);
  width: min(1040px, calc(100% - 40px));
  min-height: 560px;
  margin: max(34px, 7vh) auto;
  overflow: hidden;
  border: 1px solid rgba(125, 153, 166, .45);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(28, 57, 73, .14);
}

.login-context { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 70px; overflow: hidden; color: #fff; background: var(--navy); }
.login-context::after { position: absolute; right: -70px; bottom: -70px; width: 260px; height: 260px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; content: ""; }
.lux-logo-reveal { position: relative; width: min(300px, 100%); aspect-ratio: 6.35 / 1; margin-bottom: 42px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .22); border-radius: 5px; background: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.lux-logo-reveal img { display: block; width: 100%; height: auto; transform: translateY(-32.5%); }
.login-context h1 { max-width: 540px; margin: 0; font-size: 52px; line-height: 1; letter-spacing: 0; }
.login-intro { max-width: 450px; margin: 22px 0 0; color: #d8edf2; font-size: 17px; line-height: 1.5; }
.module-lines { position: absolute; right: 48px; bottom: 46px; left: 70px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.module-lines i { height: 4px; background: #61c9ba; }
.module-lines i:nth-child(2) { background: #5b8fd2; }
.module-lines i:nth-child(3) { background: var(--amber); }
.module-lines i:nth-child(4) { background: var(--violet); }
.module-lines i:nth-child(5) { background: #b8c8d4; }

.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 62px 56px; background: #fff; }
.login-panel header { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.login-panel header p { margin: 0 0 4px; color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.login-panel h2 { margin: 0; color: var(--navy); font-size: 26px; letter-spacing: 0; }
.login-secure-icon { display: grid; flex: 0 0 auto; width: 48px; height: 48px; place-items: center; border-radius: 8px; color: var(--green); background: #e8f6f3; }
.login-secure-icon svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#loginForm { display: grid; gap: 19px; }
#loginForm label { display: grid; gap: 7px; }
#loginForm label > span:first-child { color: #425b6a; font-size: 12px; font-weight: 750; }
#loginForm input { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fbfcfd; font: inherit; font-size: 15px; }
#loginForm input:focus { border-color: var(--green); outline: 3px solid rgba(8, 127, 113, .12); background: #fff; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 76px !important; }
.password-field button { position: absolute; top: 50%; right: 7px; min-height: 34px; padding: 5px 8px; border: 0; border-radius: 6px; color: #416174; background: transparent; transform: translateY(-50%); cursor: pointer; font: inherit; font-size: 11px; font-weight: 750; }
.password-field button:hover, .password-field button:focus-visible { color: var(--green); background: #eaf5f4; outline: none; }
.login-submit { min-height: 49px; margin-top: 3px; border: 0; border-radius: 7px; color: #fff; background: var(--navy); cursor: pointer; font: inherit; font-size: 14px; font-weight: 800; }
.login-submit:hover, .login-submit:focus-visible { background: #124b7a; outline: 3px solid rgba(18, 75, 122, .18); }
.login-submit:disabled { cursor: wait; opacity: .65; }
.login-status { margin: 0; padding: 10px 12px; border-left: 3px solid #d84855; color: #8f2f3a; background: #fff1f2; font-size: 12px; line-height: 1.4; }
.login-panel footer { margin-top: 28px; color: var(--muted); font-size: 11px; line-height: 1.4; }

@media (max-width: 780px) {
  .login-shell { grid-template-columns: 1fr; width: min(480px, calc(100% - 24px)); margin: 18px auto; }
  .login-context { min-height: 270px; padding: 34px; justify-content: flex-end; }
  .lux-logo-reveal { width: min(280px, 100%); margin-bottom: 24px; }
  .login-context h1 { font-size: 34px; }
  .login-intro { margin-top: 12px; font-size: 14px; }
  .module-lines { display: none; }
  .login-panel { padding: 36px 30px 40px; }
}

@media (prefers-reduced-motion: no-preference) {
  .login-shell { animation: login-in .3s ease both; }
  .lux-logo-reveal { animation: logo-reveal .7s cubic-bezier(.22, .75, .22, 1) .12s both; }
  .lux-logo-reveal img { animation: logo-settle .7s cubic-bezier(.22, .75, .22, 1) .12s both; }
  @keyframes login-in { from { opacity: 0; transform: translateY(8px); } }
  @keyframes logo-reveal { from { opacity: .35; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
  @keyframes logo-settle { from { transform: translateY(-32.5%) scale(.985); } to { transform: translateY(-32.5%) scale(1); } }
}
