/* KRN CRP · sign-in and WhatsApp code (views/KRN_CRP_login.ejs). The brand panel on the left, the card on the right;
   on a phone the brand panel is a band at the top. */
.lg-body { margin: 0; background: #f3f5f9; }
.lg { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(380px, 46%) 1fr; font-family: var(--font-sans); }

/* ── brand panel ── */
.lg-brand {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 44px 52px; color: #fff;
  background:
    radial-gradient(1200px 600px at -10% 110%, rgba(242, 140, 40, .28), transparent 60%),
    radial-gradient(900px 500px at 110% -10%, rgba(59, 130, 196, .35), transparent 60%),
    linear-gradient(160deg, #0f1d30 0%, #14253b 55%, #1b3354 100%);
}
.lg-brand::before { /* a fine grid, like a drawing sheet */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.lg-brand__glow { position: absolute; width: 420px; height: 420px; right: -140px; bottom: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 140, 40, .55), rgba(242, 140, 40, 0) 70%); filter: blur(10px); animation: lg-float 9s ease-in-out infinite; }
@keyframes lg-float { 50% { transform: translate(-30px, -24px) scale(1.06); } }
.lg-brand > *:not(.lg-brand__glow) { position: relative; }
.lg-brand__top { display: flex; align-items: center; gap: 16px; }
.lg-logo { display: grid; place-items: center; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .5); }
.lg-logo img { display: block; width: 100px; height: auto; }
.lg-brand__name { display: flex; flex-direction: column; line-height: 1.25; }
.lg-brand__name strong { font-size: 22px; font-weight: 800; letter-spacing: .01em; }
.lg-brand__name span { font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.lg-brand__mid h2 { margin: 0 0 26px; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.lg-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lg-points li { display: flex; align-items: center; gap: 14px; font-size: 15.5px; color: rgba(255, 255, 255, .9); }
.lg-points li span { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #f6b26b; }
.lg-brand__foot { font-size: 13px; color: rgba(255, 255, 255, .6); letter-spacing: .04em; }

/* ── form side ── */
.lg-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 24px; }
.lg-card {
  width: 100%; max-width: 440px; box-sizing: border-box; padding: 36px 36px 30px; border-radius: 22px; background: #fff;
  box-shadow: 0 1px 2px rgba(15, 29, 48, .06), 0 24px 60px -24px rgba(15, 29, 48, .28); border: 1px solid #e6eaf0;
  animation: lg-rise .45s ease both;
}
@keyframes lg-rise { from { opacity: 0; transform: translateY(10px); } }
.lg-card__logo { display: none; justify-content: center; margin-bottom: 18px; }
.lg-card__logo img { width: 100px; height: auto; }

.lg-steps { list-style: none; display: flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 0; }
.lg-step { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--font-sans); color: #8a94a3; white-space: nowrap; }
.lg-step span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #eef1f5; color: #6b7585; font: 800 12px/1 var(--font-sans); }
.lg-step--on { color: #14253b; }
.lg-step--on span { background: #f28c28; color: #1a1f27; }
.lg-step--done span { background: #1e7a46; color: #fff; }
.lg-step__bar { flex: 1; height: 3px; border-radius: 2px; background: #e6eaf0; }
.lg-step__bar--on { background: linear-gradient(90deg, #1e7a46, #f28c28); }

.lg-title { margin: 0 0 6px; font-size: 27px; line-height: 1.2; font-weight: 800; color: #14253b; letter-spacing: -.01em; }
.lg-sub { margin: 0 0 22px; color: #5b6575; font-size: 15px; line-height: 1.5; }
.lg-sub strong { color: #14253b; letter-spacing: .08em; }

.lg-alert { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; font: 600 14px/1.45 var(--font-sans); }
.lg-alert svg { flex: none; margin-top: 1px; }
.lg-alert--error { background: #fdecec; color: #a52b20; border: 1px solid #f6c9c5; }
.lg-alert--ok { background: #e9f7ef; color: #1b6b3e; border: 1px solid #c6ead4; }

.lg-form { display: flex; flex-direction: column; gap: 16px; }
.lg-field { display: flex; flex-direction: column; gap: 6px; }
.lg-field__label { font: 700 13.5px/1 var(--font-sans); color: #2a3443; }
.lg-field__box { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 14px; border-radius: 13px; border: 1.5px solid #d7dde6;
  background: #f9fafc; color: #8a94a3; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.lg-field__box:focus-within { border-color: #f28c28; background: #fff; box-shadow: 0 0 0 4px rgba(242, 140, 40, .16); color: #b45d0c; }
.lg-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #14253b; font: 500 16px/1 var(--font-sans); }
.lg-input::placeholder { color: #a3acb9; }
.lg-eye { flex: none; height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: #2b6cb0; font: 700 13px/1 var(--font-sans); cursor: pointer; }
.lg-eye:hover { background: #eef3fa; }
.lg-caps { display: inline-flex; align-items: center; gap: 6px; color: #b45d0c; font: 600 12.5px/1 var(--font-sans); }
.lg-caps[hidden] { display: none; }

.lg-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; margin-top: 4px; border: 0; border-radius: 14px;
  background: linear-gradient(180deg, #f6a040 0%, #f28c28 100%); color: #1a1f27; font: 800 16px/1 var(--font-sans); cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(242, 140, 40, .9), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.lg-btn:hover { filter: brightness(1.03); box-shadow: 0 14px 26px -10px rgba(242, 140, 40, .95), inset 0 1px 0 rgba(255, 255, 255, .35); }
.lg-btn:active { transform: translateY(1px); }
.lg-btn:focus-visible { outline: 3px solid #14253b; outline-offset: 3px; }
.lg-btn[disabled] { cursor: progress; filter: saturate(.7); }
.lg-btn--busy::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(26, 31, 39, .25); border-top-color: #1a1f27; animation: lg-spin .7s linear infinite; }
@keyframes lg-spin { to { transform: rotate(360deg); } }
.lg-help { margin: 20px 0 0; text-align: center; color: #6b7585; font-size: 14px; }

/* the six code boxes */
.lg-otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.lg-otp__box { width: 100%; min-width: 0; height: 62px; box-sizing: border-box; border-radius: 14px; border: 1.5px solid #d7dde6; background: #f9fafc; text-align: center;
  color: #14253b; font: 800 26px/1 var(--font-sans); font-variant-numeric: tabular-nums; outline: 0; caret-color: #f28c28; transition: all .15s ease; }
.lg-otp__box:focus { border-color: #f28c28; background: #fff; box-shadow: 0 0 0 4px rgba(242, 140, 40, .16); transform: translateY(-1px); }
.lg-otp__box--on { border-color: #14253b; background: #fff; }
.lg-otp--shake { animation: lg-shake .4s ease; }
.lg-otp--shake .lg-otp__box { border-color: #d0453a; }
@keyframes lg-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.lg-expiry { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; color: #5b6575; font-size: 13.5px; }
.lg-expiry b { color: #14253b; font-variant-numeric: tabular-nums; }
.lg-expiry--gone { color: #a52b20; font-weight: 600; }
.lg-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.lg-links form { margin: 0; }
.lg-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; margin: 0 -10px; border: 0; border-radius: 9px; background: transparent;
  color: #2b6cb0; font: 700 14px/1 var(--font-sans); text-decoration: none; cursor: pointer; }
.lg-link:hover:not([disabled]) { background: #eef3fa; }
.lg-link[disabled] { color: #8a94a3; cursor: default; }
.lg-link svg { flex: none; }
.lg-link--muted { color: #5b6575; }
.lg-copy { margin: 0; color: #8a94a3; font-size: 12.5px; }

/* ── tablet and phone: the brand is a band at the top ── */
@media (max-width: 900px) {
  .lg { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .lg-brand { padding: 22px 20px 64px; gap: 0; }
  .lg-brand__mid, .lg-brand__foot { display: none; }
  .lg-brand__top { justify-content: center; }
  .lg-logo { padding: 8px 12px; }
  .lg-logo img { width: 80px; }
  .lg-main { justify-content: flex-start; margin-top: -48px; padding: 0 16px 28px; }
  .lg-card { padding: 28px 22px 24px; }
}
@media (max-width: 380px) { .lg-otp { gap: 6px; } .lg-otp__box { height: 54px; font-size: 22px; } .lg-brand__name span { display: none; } }
@media (prefers-reduced-motion: reduce) { .lg-brand__glow, .lg-card { animation: none; } }
