:root {
  color-scheme: dark;
  --jne-bg: #05090d;
  --jne-panel: rgba(10, 16, 22, .96);
  --jne-line: #33404c;
  --jne-red: #ef252d;
  --jne-text: #f4f7fa;
  --jne-muted: #a9b3bd;
  font-family: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body {
  min-height: 100dvh;
  color: var(--jne-text);
  background:
    radial-gradient(circle at 82% 20%, rgba(190, 18, 27, .20), transparent 31%),
    radial-gradient(circle at 15% 58%, rgba(120, 12, 18, .12), transparent 34%),
    linear-gradient(rgba(3, 7, 10, .54), rgba(3, 7, 10, .76)),
    url("../Assets/jne-login-honeycomb-background.webp?v=2.5") center / cover fixed;
}
body.app-loading { cursor: progress; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: progress; opacity: .7; }
.hidden { display: none !important; }

#jneStartupStatus {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: #05090d;
}
#jneStartupStatus > div {
  display: grid;
  gap: 8px;
  min-width: min(420px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid #7c1c22;
  border-radius: 12px;
  background: #0a1016;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
#jneStartupStatus span { color: var(--jne-muted); }

.login-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
}
.login-card {
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
  padding: 30px 38px 26px;
  border: 1px solid var(--jne-line);
  border-top-color: var(--jne-red);
  border-radius: 16px;
  background: var(--jne-panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.login-logo-lockup { display: grid; place-items: center; }
.login-logo-lockup img { width: 92px; height: 92px; object-fit: contain; }
.login-title { margin: 0; text-align: center; font-size: clamp(34px, 5vw, 46px); line-height: 1; letter-spacing: .055em; }
.login-subtitle { margin: -4px 0 8px; text-align: center; color: var(--jne-muted); font-size: 15px; line-height: 1.4; }
.login-card label { display: grid; gap: 7px; color: #d8dee4; font-size: 14px; font-weight: 700; }
.login-card input {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid var(--jne-line);
  border-radius: 8px;
  color: var(--jne-text);
  background: #0b1218;
  outline: none;
}
.login-card input:focus { border-color: var(--jne-red); box-shadow: 0 0 0 2px rgba(239, 37, 45, .18); }
.login-password-control { position: relative; display: block; }
.login-password-control input { padding-right: 52px; }
.login-password-toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 38px;
  height: 36px;
  border: 0;
  border-radius: 7px;
  color: #d8dee4;
  background: transparent;
}
.login-password-toggle svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.login-copyright { color: var(--jne-muted); font-size: 12px; line-height: 1.4; }
.login-error { min-height: 20px; color: #ff7378; font-size: 13px; }
.login-card > button.primary {
  min-height: 46px;
  border: 1px solid #ff343b;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(180deg, #ef252d, #a90e15);
}
.login-recovery-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.login-recovery-actions button {
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid var(--jne-line);
  border-radius: 8px;
  color: #dfe5ea;
  background: #111820;
}
.login-recovery-actions button { display:flex; align-items:center; justify-content:center; gap:9px; font-weight:700; }
.login-action-icon { width:20px; height:20px; flex:0 0 20px; fill:none; stroke:var(--jne-red); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

@media (max-width: 560px) {
  .login-screen { padding: 12px; align-content: start; padding-top: 24px; }
  .login-card { padding: 20px 16px; border-radius: 12px; }
  .login-logo-lockup img { width: 62px; height: 62px; }
}

@media (max-height: 780px) and (min-width: 561px) {
  .login-screen { padding-block: 14px; }
  .login-card { gap: 5px; padding: 14px 32px 12px; }
  .login-logo-lockup img { width: 60px; height: 60px; }
  .login-title { font-size: 34px; }
  .login-subtitle { margin-bottom: 2px; font-size: 13px; }
  .login-card input { min-height: 44px; }
  .login-card > button.primary { min-height: 44px; }
  .login-recovery-actions button { min-height: 42px; font-size: 14px; }
  .quick-incident-launch { min-height: 54px; padding: 7px 12px; }
}
