/* =====================================================================
   LOGIN PAGE — replica of the approved reference
   Grid: 1536x1024 reference. Logo top-left, tagline top-right, hero copy
   left, card centre, feature list right, cursive bottom-right, footer.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&display=swap');

html, body { height: 100%; }
body.login-body {
  margin: 0;
  background: #F4F5F7;
  font-family: 'Inter', var(--font-body), sans-serif;
  color: #1C2434;
  overflow-x: hidden;
}

/* ---------- background scene ---------- */
.lg-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(160deg, #FFFFFF 0%, #F5F6F8 55%, #EEF0F3 100%); }

.lg-shape { position: absolute; }
.lg-shape--tl { left: -14vw; top: -30vh; width: 60vw; height: 110vh;
  background: linear-gradient(135deg, rgba(241,91,37,0.16) 0%, rgba(241,91,37,0.05) 45%, rgba(241,91,37,0) 70%);
  clip-path: polygon(0 0, 100% 0, 0 100%); }
.lg-shape--tr { right: -12vw; top: -20vh; width: 48vw; height: 80vh;
  background: linear-gradient(225deg, rgba(241,91,37,0.14) 0%, rgba(241,91,37,0.04) 45%, rgba(241,91,37,0) 70%);
  clip-path: polygon(100% 0, 100% 100%, 0 0); }
.lg-shape--r { right: 0; top: 32vh; width: 8vw; height: 26vh;
  background: linear-gradient(200deg, rgba(241,91,37,0.16), rgba(241,91,37,0));
  clip-path: polygon(100% 0, 100% 100%, 0 60%); }

.lg-blur span { position: absolute; background: #C4C9D3; opacity: 0.28; border-radius: 10px;
  filter: blur(22px); }

.lg-scene { position: absolute; left: 0; bottom: 5vh; width: 44vw; max-width: 680px; height: auto;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 100%); }

/* ---------- page grid ---------- */
.lg-page { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

.lg-top { display: flex; justify-content: space-between; align-items: flex-start;
  padding: 26px 46px 0 156px; }
.lg-logo-corner { width: 170px; height: auto; }
.lg-tag { text-align: right; font-size: 14px; line-height: 1.5; color: #4B5563; margin-top: 18px; }
.lg-tag b { color: #F15B25; font-weight: 600; }

.lg-main { flex: 1; display: grid; grid-template-columns: 1fr 500px 1fr; align-items: center;
  padding: 0 46px 40px; column-gap: 20px; }

/* ---------- left hero ---------- */
.lg-hero { padding-left: 40px; align-self: start; margin-top: 90px; }
.lg-hero h1 { font-family: 'Inter', var(--font-body), sans-serif; font-weight: 800; font-size: 46px;
  line-height: 1.08; color: #1C2434; margin: 0 0 18px; letter-spacing: -0.01em; }
.lg-hero h1 span { color: #F15B25; }
.lg-hero p { font-size: 17px; line-height: 1.5; color: #4B5563; margin: 0; }
.lg-hero__rule { display: block; width: 42px; height: 3px; background: #F15B25; border-radius: 2px; margin-top: 22px; }

/* ---------- card ---------- */
.lg-card { width: 500px; background: #FFFFFF; border-radius: 22px; padding: 26px 34px 24px;
  box-shadow: 0 30px 70px rgba(28,36,52,0.13), 0 3px 12px rgba(28,36,52,0.05); text-align: center; }
/* Sized up now that the "OUTWARD / Warehouse Operations" text stack
   below it is gone — the logo alone carries the card's header. */
.lg-logo-card { width: 220px; height: auto; margin: 6px auto 4px; display: block; }
.lg-signin { font-size: 15.5px; color: #4B5563; margin: 30px 0 22px; }
.lg-hint { font-size: 13px; color: #6B7280; margin: -12px 0 16px; }

.login-error { display: none; background: rgba(214,69,69,0.08); border: 1px solid rgba(214,69,69,0.25);
  color: #D64545; padding: 9px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; text-align: left; }
.login-error.is-visible { display: block; }

.lg-field { position: relative; margin-bottom: 18px; }
.lg-field__icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #4B5563; display: flex; }
.lg-input { width: 100%; height: 52px; box-sizing: border-box; padding: 0 48px 0 56px;
  border: 1.5px solid #E5E7EB; border-radius: 10px; background: #FFFFFF; font-size: 15.5px; color: #1C2434;
  font-family: inherit; }
.lg-input::placeholder { color: #6B7280; }
.lg-input:focus { outline: none; border-color: #F15B25; box-shadow: 0 0 0 3px rgba(241,91,37,0.12); }
.lg-field__toggle { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); border: none;
  background: none; padding: 0; color: #4B5563; cursor: pointer; display: flex; }

.lg-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 22px; }
.lg-remember { display: flex; align-items: center; gap: 10px; font-size: 16px; color: #1C2434; cursor: pointer; }
.lg-remember input { appearance: none; width: 22px; height: 22px; border-radius: 6px; background: #F15B25;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin: 0; }
.lg-remember input:not(:checked) { background: #fff; border: 1.5px solid #D1D5DB; }
.lg-remember input:checked::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: translateY(-1px) rotate(45deg); }
.lg-forgot { font-size: 16px; color: #F15B25; text-decoration: none; }
.lg-forgot:hover { text-decoration: underline; }

.lg-submit { width: 100%; height: 56px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(90deg, #FF7A2F 0%, #F15B25 100%); color: #fff;
  font-family: inherit; font-size: 20px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 12px;
  box-shadow: 0 10px 24px rgba(241,91,37,0.30); }
.lg-submit:hover { filter: brightness(1.04); }
.lg-submit:disabled { opacity: 0.75; cursor: default; }

.lg-or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: #6B7280; font-size: 15px; }
.lg-or::before, .lg-or::after { content: ''; flex: 1; height: 1px; background: #E5E7EB; }

.lg-qr { width: 100%; display: flex; align-items: center; gap: 16px; padding: 14px 20px; border: none;
  border-radius: 12px; background: #EEF0F3; cursor: pointer; text-align: left; font-family: inherit; }
.lg-qr:hover { background: #E5E8EC; }
.lg-qr__icon { color: #1C2434; display: flex; }
.lg-qr__text { display: flex; flex-direction: column; font-size: 15px; color: #6B7280; line-height: 1.3; }
.lg-qr__text b { font-size: 16.5px; color: #1C2434; font-weight: 600; }

.lg-note { font-size: 14px; color: #6B7280; line-height: 1.6; margin: 22px 0 0; }
.lg-back { display: block; margin-top: 16px; font-size: 14px; color: #6B7280; text-decoration: none; }
.lg-back:hover { color: #F15B25; }

.login-panel { display: none; }
.login-panel.is-active { display: block; }

/* ---------- right side ---------- */
.lg-side { padding-left: 110px; align-self: start; margin-top: 60px; display: flex; flex-direction: column; }
.lg-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 52px; }
.lg-features li { display: flex; align-items: center; gap: 22px; }
.lg-features__icon { width: 72px; height: 72px; border-radius: 16px; background: #FDEAE2; color: #F15B25;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.lg-features li > span:last-child { display: flex; flex-direction: column; font-size: 15px; color: #6B7280; line-height: 1.35; }
.lg-features li b { font-size: 20px; color: #1C2434; font-weight: 600; }

.lg-cursive { position: relative; margin-top: 78px; margin-left: 66px; white-space: nowrap;
  font-family: 'Caveat', 'Segoe Script', 'Brush Script MT', 'Comic Sans MS', cursive; font-weight: 700;
  font-size: 40px; line-height: 1.05; color: #2B3548; transform: rotate(-4deg); }
.lg-cursive svg { position: absolute; left: 20px; bottom: -22px; width: 230px; height: 26px; }

/* ---------- footer ---------- */
.lg-footer { display: flex; justify-content: space-between; align-items: center; padding: 22px 46px 22px 52px;
  border-top: 1px solid #E5E7EB; font-size: 15px; color: #6B7280; background: rgba(255,255,255,0.5); }
.lg-footer__right { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.lg-footer__right b { color: #1C2434; font-weight: 600; }
/* "Powered by" credit line — deliberately smaller than the copyright text beside it. */
.lg-footer__right--small { font-size: 12.5px; }
.lg-footer__right--small b { font-size: 12.5px; }
.lg-footer__right i { font-style: normal; color: #D1D5DB; }
.lg-footer__right a { color: #6B7280; text-decoration: none; }
.lg-footer__right a:hover { color: #F15B25; }
/* Kept as single units so wrapping never splits "Powered By -" from the
   company name, or a link from its neighbouring separator. */
.lg-footer__credit, .lg-footer__links { white-space: nowrap; }
.lg-footer__links { display: inline-flex; align-items: center; gap: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1380px) {
  .lg-top { padding-left: 60px; }
  .lg-hero { padding-left: 0; }
  .lg-side { padding-left: 50px; }
  .lg-scene { width: 38vw; }
}
@media (max-width: 1180px) {
  .lg-main { grid-template-columns: 1fr 460px; }
  .lg-side { display: none; }
  .lg-card { width: 460px; }
}
@media (max-width: 860px) {
  .lg-top { padding: 18px 20px 0; }
  .lg-logo-corner { width: 120px; }
  .lg-tag { display: none; }
  .lg-main { grid-template-columns: 1fr; padding: 10px 16px 30px; }
  .lg-hero, .lg-scene, .lg-blur { display: none; }
  .lg-card { width: 100%; max-width: 460px; margin: 0 auto; padding: 22px 22px 20px; border-radius: 18px; }
  .lg-footer { flex-direction: column; gap: 8px; text-align: center; font-size: 13px; padding: 14px 16px; }
}
