/* ============================================================
   PULSE Enterprise Dashboard v2 (app 90800) - shell
   Each module page is one root element (#ent-root, styled by
   PKG_ENT_ASSET). This file only removes the Universal Theme
   chrome around it and styles the PULSE login page.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

/* ---------- App page: no UT chrome, the SPA owns the viewport ---------- */
body:not(.t-PageBody--login){ background:#F8F9FA !important; }
body:not(.t-PageBody--login) .t-Header,
body:not(.t-PageBody--login) #t_Header,
body:not(.t-PageBody--login) .t-Body-nav,
body:not(.t-PageBody--login) .t-Footer,
body:not(.t-PageBody--login) #t_Footer,
body:not(.t-PageBody--login) .t-Body-title,
body:not(.t-PageBody--login) .t-Breadcrumb-region{ display:none !important; }
body:not(.t-PageBody--login) .t-Body,
body:not(.t-PageBody--login) .t-Body-main,
body:not(.t-PageBody--login) .t-Body-content,
body:not(.t-PageBody--login) .t-Body-contentInner,
body:not(.t-PageBody--login) #t_Body_content,
body:not(.t-PageBody--login) .t-Body-fullContent{
  margin:0 !important; padding:0 !important; max-width:none !important;
  background:transparent !important; border:0 !important; min-height:0 !important;
}
body:not(.t-PageBody--login) .t-Body-main{ margin-top:0 !important; padding-top:0 !important; }
body:not(.t-PageBody--login) .t-Body-contentInner > .container,
body:not(.t-PageBody--login) .t-Body-contentInner .row,
body:not(.t-PageBody--login) .t-Body-contentInner .col{
  margin:0 !important; padding:0 !important; max-width:none !important; width:100% !important;
}
/* APEX's own success / error notifications still have to show */
body:not(.t-PageBody--login) .t-Body-alert{ position:fixed; top:12px; left:50%; transform:translateX(-50%); z-index:1000; width:min(440px,calc(100vw - 24px)); }

/* ============================================================
   PULSE login page (body.t-PageBody--login only)
   ============================================================ */
body.t-PageBody--login{
  background:linear-gradient(135deg,#031C47 0%,#04275F 38%,#0B4DA2 100%) !important;
  font-family:Inter,"Segoe UI Variable","Segoe UI",system-ui,-apple-system,sans-serif;
}
body.t-PageBody--login::before{
  content:""; position:fixed; inset:0; pointer-events:none; z-index:0;
  background:radial-gradient(560px 420px at 18% 12%, rgba(120,170,255,.16), transparent 70%),
             radial-gradient(640px 480px at 86% 88%, rgba(10,107,194,.35), transparent 70%);
}
body.t-PageBody--login .t-Body,
body.t-PageBody--login .t-Body-wrap,
body.t-PageBody--login .t-Body-main,
body.t-PageBody--login #t_Body_content{ background:transparent !important; }
/* fluid centering: flex overlay centers the card at ANY viewport size and
   scrolls when the screen is shorter than the card (transform-pin was brittle
   across zoom/scaling - misaligned on Mac) */
body.t-PageBody--login #t_Body_content{
  position:fixed; inset:0; overflow:auto;
  display:flex; flex-direction:column; align-items:center;
  padding:32px 16px 64px;
}
body.t-PageBody--login .t-Body-fullContent,
body.t-PageBody--login .t-Body-contentInner,
body.t-PageBody--login #t_Body_content .container,
body.t-PageBody--login #t_Body_content .row,
body.t-PageBody--login #t_Body_content .col{ display:contents; }
body.t-PageBody--login .t-Login-region{
  position:relative; margin:auto;
  width:min(400px, 100%); z-index:1;
  background:#FFFFFF; border:0; border-radius:20px;
  box-shadow:0 10px 30px rgba(2,12,32,.35),0 30px 80px rgba(2,12,32,.45);
  padding:40px 36px 30px;
}
@media (max-width:480px){
  body.t-PageBody--login .t-Login-region{ padding:28px 20px 24px; }
}
body.t-PageBody--login .t-Login-region::after{
  content:"Dinesh Engineers Limited";
  position:absolute; top:calc(100% + 16px); left:0; right:0;
  text-align:center; font-size:12px; letter-spacing:.03em;
  color:rgba(255,255,255,.75);
}
body.t-PageBody--login .t-Login-header{ display:none; }
body.t-PageBody--login .t-Login-body{ display:flex; flex-direction:column; }
body.t-PageBody--login .t-Login-body .pl-brand{ order:-1; }
.pl-brand{ text-align:center; margin-bottom:24px; }
.pl-logochip{ display:inline-flex; align-items:center; justify-content:center; width:64px; height:64px; border-radius:16px; background:#F3F5F9; border:1px solid #E3E7EC; }
.pl-logochip img{ height:42px; width:auto; display:block; }
.pl-word{ margin-top:14px; font-size:25px; font-weight:800; letter-spacing:.16em; color:#04275F; display:inline-flex; align-items:center; }
.pl-beat{ width:7px; height:7px; border-radius:50%; background:#E30016; margin-left:4px; margin-top:6px; display:inline-block; }
.pl-sub{ font-size:12.5px; color:#7A8798; margin-top:4px; letter-spacing:.02em; }
body.t-PageBody--login .t-Form-label{ font-size:12.5px; font-weight:600; color:#4E6076; }
body.t-PageBody--login .t-Form-labelContainer{ padding-bottom:4px; }
body.t-PageBody--login .t-Form-itemWrapper{ position:relative; }
body.t-PageBody--login .apex-item-icon{ display:none; }
body.t-PageBody--login .t-Login-body input.apex-item-text{
  height:46px; border:1px solid #D8DEE6; border-radius:12px;
  padding-left:14px; font-size:14.5px; color:#1D2D3E; background:#FFFFFF; width:100%;
  box-shadow:none;
}
body.t-PageBody--login .t-Login-body input.apex-item-text:focus{
  outline:none; border-color:#2E5FB8; box-shadow:0 0 0 3px rgba(46,95,184,.16);
}
body.t-PageBody--login .apex-item-group--password{
  display:flex; align-items:center;
  border:1px solid #D8DEE6; border-radius:12px; background:#FFFFFF;
}
body.t-PageBody--login .apex-item-group--password:focus-within{ border-color:#2E5FB8; box-shadow:0 0 0 3px rgba(46,95,184,.16); }
body.t-PageBody--login .apex-item-group--password input.apex-item-text{ border:0 !important; box-shadow:none !important; flex:1 1 auto; }
body.t-PageBody--login .apex-item-group--password .t-Button--passwordVisibility{ color:#7A8798; background:none; border:0; margin-right:6px; }
body.t-PageBody--login .t-Login-buttons{ padding-top:8px; }
body.t-PageBody--login .t-Login-buttons .t-Button--hot{
  width:100%; height:46px; background:#0B3E8F; border:0; border-radius:999px;
  color:#FFFFFF; font-weight:650; font-size:14.5px;
}
body.t-PageBody--login .t-Login-buttons .t-Button--hot:hover{ background:#0A4CAF; box-shadow:0 6px 18px rgba(4,39,95,.35); }
/* OTP sign-in controls: flex order puts them between Username and the code field
   (source htmlCode renders after items, so ordering is visual only) */
body.t-PageBody--login .t-Login-body .pl-otp{ order:1; }
body.t-PageBody--login #P9999_OTP_CONTAINER{ order:2; }
.pl-otp{ margin:2px 0 14px; }
.pl-otp-row{ display:flex; gap:10px; }
.pl-otp-btn{
  flex:1 1 50%; height:38px; border-radius:999px; cursor:pointer;
  background:#F3F6FB; border:1px solid #D8DEE6; color:#0B3E8F;
  font-weight:600; font-size:13px; font-family:inherit;
}
.pl-otp-btn:hover{ background:#E9EFF9; border-color:#2E5FB8; }
/* SMS OTP parked until a DLT-registered gateway is wired (ONS SMS filtered by carriers) */
#pl-send-sms{ display:none; }
/* page-level alerts (invalid login etc.) render in-flow BEHIND the fixed card -
   pin them as a toast above everything */
body.t-PageBody--login .t-Body-alert,
body.t-PageBody--login #t_Alert_Notification{
  position:fixed; top:18px; left:50%; transform:translateX(-50%);
  z-index:200; width:min(420px, calc(100vw - 32px)); margin:0;
}
body.t-PageBody--login .t-Body-alert .t-Alert,
body.t-PageBody--login #t_Alert_Notification .t-Alert{
  border-radius:12px; box-shadow:0 8px 24px rgba(2,12,32,.35);
}
.pl-otp-btn:disabled{ opacity:.45; cursor:default; }
.pl-otp-status{ margin-top:9px; font-size:12px; line-height:1.45; color:#7A8798; min-height:16px; }
.pl-otp-status.ok{ color:#149A25; }
.pl-otp-status.err{ color:#D8515C; }
.pl-under{ display:none; }
.pl-built{
  position:fixed; left:50%; bottom:14px; transform:translateX(-50%);
  display:flex; align-items:center; gap:6px; z-index:1;
  font-size:11px; letter-spacing:.04em; color:rgba(255,255,255,.55);
}
.pl-built img{ height:13px; width:auto; display:block; filter:brightness(0) invert(1); opacity:.65; }
