/* ==========================================================================
   Login page redesign — SteelCorr DPR
   Scoped entirely under .hold-all-login so nothing here can affect any
   other page. Loaded only by the login(), forgot_password() and
   reset_password() actions in
   application/modules/account/controllers/main/Account.php via $css_files,
   after login.min.css, so it overrides the legacy login look without
   editing login.css/login.min.css.
   ========================================================================== */

/* This stylesheet is only ever loaded on the login page (via $css_files in
   Account.php::login()), so it's safe to target body/html directly here —
   it can never leak into any other page.
   The site's shared login.css sets body,html to display:flex with
   align-items:center/justify-content:center, which vertically-centers
   .hold-all-login as a whole in the viewport. When our content is taller
   than the viewport that pushes the top of the page (including the logo)
   above the visible area — the same failure mode as unsupported "safe
   center", just one layer further out. Overriding to top alignment here
   lets the page grow/scroll downward from the top instead, so nothing at
   the top is ever hidden regardless of viewport height. */
body, html{
  display:block;
  align-items:flex-start;
  justify-content:flex-start;
  height:auto;
  min-height:100%;
}

.hold-all-login{
  --navy:#0a2540;
  --navy2:#0e3660;
  --blue:#1a56b8;
  --blue-bright:#2f6fe0;
  --gold:#f4b942;
  --ink:#12283f;
  --sub:#5b6b7a;
  --line:#e6eaf0;
  --bg:#f5f7fa;
  --white:#ffffff;
  --danger:#c0392b;
}

.hold-all-login,
.hold-all-login *{
  box-sizing:border-box;
}

.hold-all-login{
  display:flex;
  width:100%;
  min-height:100vh;
  margin:0;
  padding:0;
  font-family:'Segoe UI',-apple-system,BlinkMacSystemFont,Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
}

.hold-all-login .hold-login-div{
  display:flex;
  flex-wrap:nowrap;
  justify-content:flex-start;
  align-items:stretch;
  align-content:stretch;
  width:100%;
  max-width:none;
  min-height:100vh;
  margin:0;
  padding:0;
  background-color:transparent;
}

/* ============ RIGHT: FORM PANEL (left_login rendered first in the DOM,
   moved visually to the right via CSS order — matches the design) ============ */
.hold-all-login .left_login{
  width:460px;
  align-items:flex-start;
  flex-shrink:0;
  min-height:100vh;
  background:var(--white);
  display:flex;
  flex-direction:column;
  /* Plain top-alignment, not "safe center": support for the "safe" keyword
     on flex containers is inconsistent across Chrome versions/configs, and
     when it isn't honored, centering silently pushes the first child (the
     logo) above the visible area whenever content is taller than the
     viewport — reproducing as "logo missing at normal size, appears when
     the window is shrunk" (shrinking crosses the mobile breakpoint below,
     which never centers). Top-alignment has no such failure mode. */
  justify-content:flex-start;
  padding:40px 56px 24px;
  overflow-y:auto;
  position:relative;
  z-index:2;
  order:2;
  margin:0;
  box-shadow:-6px 0 30px rgba(10,37,64,0.06);
}
.hold-all-login .left_login *{
  margin:0;
  padding:0;
}

.hold-all-login .left_login .logo{
  display:flex;
  flex-shrink:0;
  width:auto;
  max-width:none;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  margin-bottom:28px;
}
.hold-all-login .left_login .logo img{
  height:60px;
  min-height:40px;
  width:auto;
  flex-shrink:0;
  display:block;
}

/* This site's shared footer.php always renders a global copyright/powered-by
   strip after the page content. The reference design has no such footer, and
   footer.php is a shared template we must not edit — so hide it here,
   scoped so this rule can only ever match when .hold-all-login (this page)
   is present, i.e. it can't affect any other page. */
.hold-all-login ~ .footer-section{
  display:none;
}

.hold-all-login .login-eyebrow{
  display:block;
  font-size:11px;
  font-weight:800;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--blue);
  margin-bottom:8px;
}
.hold-all-login .login-title{
  display:block;
  font-size:26px;
  font-weight:800;
  color:var(--ink);
  line-height:1.25;
  margin-bottom:8px;
  text-align:left;
}
.hold-all-login .login-subtitle{
  display:block;
  font-size:13.5px;
  color:var(--sub);
  line-height:1.5;
  margin-bottom:26px;
}

.hold-all-login .one_input_item{
  margin-bottom:16px;
}
.hold-all-login .one_input_item .field_label{
  display:block;
  font-size:12px;
  font-weight:700;
  color:var(--ink);
  margin-bottom:7px;
}
.hold-all-login .hold_input_item{
  position:relative;
}
.hold-all-login .hold_input_item .field_icon{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  width:16px;
  height:16px;
  stroke:#a7b0bc;
  pointer-events:none;
  z-index:1;
}
.hold-all-login .hold_input_item .input_item{
  width:100%;
  padding:13px 14px 13px 40px;
  border:1.5px solid var(--line);
  border-radius:10px;
  font-size:14px;
  color:var(--ink);
  background:#fbfcfd;
  outline:none;
  transition:border-color .18s, box-shadow .18s, background .18s;
}
.hold-all-login .hold_input_item.pwd_input_wrap .input_item{
  padding-right:40px;
}
.hold-all-login .hold_input_item .input_item::placeholder{ color:#b3bac4; }
.hold-all-login .hold_input_item .input_item:focus{
  border-color:var(--blue-bright);
  background:#fff;
  box-shadow:0 0 0 4px rgba(47,111,224,0.12);
}
.hold-all-login .hold_input_item .input_item.error{
  border-color:var(--danger);
}
/* legacy underline-style animation not used by the new bordered inputs */
.hold-all-login .hold_input_item .input_outline{
  display:none;
}
.hold-all-login .hold_input_item .pwd_toggle_btn{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  cursor:pointer;
  color:#a7b0bc;
  font-size:14px;
  z-index:1;
}
.hold-all-login .hold_input_item .pwd_toggle_btn:hover{ color:var(--sub); }

.hold-all-login .field_hint{
  display:block;
  font-size:11px;
  font-weight:400;
  color:#a7b0bc;
  margin-top:6px;
}

.hold-all-login .row-between{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:2px 0 22px;
}
.hold-all-login .remember{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12.5px;
  color:var(--sub);
}
.hold-all-login .remember input{ width:14px; height:14px; accent-color:var(--blue); margin:0; }
.hold-all-login .fgt_pswd{
  font-size:12.5px;
  font-weight:700;
  color:var(--blue);
  text-decoration:none;
}
.hold-all-login .fgt_pswd:hover{ text-decoration:underline; }

.hold-all-login .main_btn{
  display:block;
  width:100%;
  padding:14px;
  border:none;
  border-radius:10px;
  background:linear-gradient(135deg,var(--blue-bright),var(--navy2));
  color:#fff;
  font-size:14.5px;
  font-weight:800;
  letter-spacing:.2px;
  line-height:1.4;
  text-transform:none;
  cursor:pointer;
  text-align:center;
  box-shadow:0 10px 24px rgba(26,86,184,0.28);
  transition:transform .15s, box-shadow .15s;
}
.hold-all-login .main_btn:not(:disabled):hover{ transform:translateY(-1px); box-shadow:0 14px 30px rgba(26,86,184,0.34); }
.hold-all-login .main_btn:not(:disabled):active{ transform:translateY(0); }
/* Disabled until the form's required fields are filled (login_redesign.js): no hand cursor, no hover lift.
   !important because the site-wide "button { cursor:pointer }" rules are loaded on this page too. */
.hold-all-login .main_btn:disabled,
.hold-all-login .main_btn[disabled]{ opacity:.5; cursor:not-allowed !important; transform:none; box-shadow:none; }

.hold-all-login .login-divider{
  display:flex;
  align-items:center;
  gap:12px;
  margin:20px 0;
}
.hold-all-login .login-divider .line{ flex:1; height:1px; background:var(--line); }
.hold-all-login .login-divider span{ font-size:11px; color:#a7b0bc; font-weight:700; letter-spacing:.4px; }

.hold-all-login .sign_wver{
  display:flex;
  width:100%;
  padding:12.5px;
  border:1.5px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:var(--ink);
  font-size:13.5px;
  font-weight:700;
  line-height:1.4;
  text-transform:none;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
  transition:border-color .15s, background .15s;
  margin-top:10px;
}
.hold-all-login .sign_wver:hover{ border-color:#c9d2de; background:#fafbfc; }
.hold-all-login .sign_wver svg{ width:16px; height:16px; flex-shrink:0; }

.hold-all-login input[name="url_project_id"]{ display:none; }

.hold-all-login .trust-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin-top:28px;
  padding:20px 0 18px;
  border-top:1px solid var(--line);
}
.hold-all-login .trust-row img{
  height:44px;
  width:auto;
  opacity:.92;
}

.hold-all-login ul.legal-footer{
  margin-top:6px;
  padding-bottom:6px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:6px 14px;
  font-size:10.5px;
  color:#a7b0bc;
  list-style:none;
}
.hold-all-login ul.legal-footer li{ margin:0; padding:0; }
.hold-all-login ul.legal-footer a{ color:#8a94a0; text-decoration:none; font-size:10.5px; }
.hold-all-login ul.legal-footer a:hover{ text-decoration:underline; color:var(--blue); }

/* ============ LEFT: HERO / SLIDER PANEL ============ */
.hold-all-login .right_login{
  flex:1;
  width:auto;
  min-height:100vh;
  position:relative;
  background:linear-gradient(160deg,var(--navy) 0%,var(--navy2) 55%,#123a6b 100%);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  flex-wrap:nowrap;
  justify-content:flex-start;
  align-items:stretch;
  align-content:stretch;
  order:1;
  margin:0;
  padding:0;
}
.hold-all-login .right_login *{
  margin:0;
  padding:0;
}
.hold-all-login .right_login::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    radial-gradient(circle at 85% 8%, rgba(255,255,255,0.07), transparent 45%),
    radial-gradient(circle at 10% 92%, rgba(47,111,224,0.25), transparent 50%);
  pointer-events:none;
}
.hold-all-login .hero-topbar{
  position:relative;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:30px 48px 0;
}
.hold-all-login .hero-topbar img{
  height:30px;
  width:auto;
}

.hold-all-login .slider-viewport{
  position:relative;
  flex:1;
  z-index:2;
  overflow:hidden;
}
.hold-all-login .slide-track{
  display:flex;
  height:100%;
  width:calc(var(--slide-count, 3) * 100%);
  transition:transform 0.85s cubic-bezier(0.65,0,0.2,1);
}
.hold-all-login .login-slide{
  width:calc(100% / var(--slide-count, 3));
  height:100%;
  display:flex;
  flex-direction:column;
  padding:26px 56px 40px;
  overflow:hidden;
}
.hold-all-login .slide-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  align-self:flex-start;
  background:rgba(255,255,255,0.1);
  border:1px solid rgba(255,255,255,0.18);
  color:#fff;
  font-size:11.5px;
  font-weight:800;
  letter-spacing:.6px;
  text-transform:uppercase;
  padding:6px 13px;
  border-radius:8px;
  margin-bottom:14px;
  flex-shrink:0;
  opacity:0;
  animation:loginFadeUp .7s ease forwards;
  animation-delay:.05s;
}
.hold-all-login .slide-heading{
  font-size:26px;
  font-weight:800;
  color:#fff;
  line-height:1.25;
  max-width:560px;
  margin-bottom:8px;
  flex-shrink:0;
  opacity:0;
  animation:loginFadeUp .7s ease forwards;
  animation-delay:.12s;
}
.hold-all-login .slide-heading b{ color:var(--gold); font-weight:800; }
.hold-all-login .slide-desc{
  font-size:13.5px;
  color:#c3d1e3;
  line-height:1.5;
  max-width:520px;
  margin-bottom:16px;
  flex-shrink:0;
  opacity:0;
  animation:loginFadeUp .7s ease forwards;
  animation-delay:.18s;
}
.hold-all-login .slide-image-card{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.14);
  box-shadow:0 30px 60px rgba(0,0,0,0.35);
  padding:16px;
  max-width:100%;
  flex:1;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  animation:loginFadeUp .8s ease forwards;
  animation-delay:.24s;
}
.hold-all-login .slide-image-card img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  display:block;
  border-radius:9px;
  object-fit:contain;
}
.hold-all-login .slide-stats{
  display:flex;
  gap:26px;
  margin-top:16px;
  flex-shrink:0;
  opacity:0;
  animation:loginFadeUp .8s ease forwards;
  animation-delay:.32s;
}
.hold-all-login .stat-block{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.hold-all-login .stat-block .num{
  font-size:20px;
  font-weight:800;
  color:#fff;
}
.hold-all-login .stat-block .lbl{
  font-size:11px;
  color:#9fb2cb;
  font-weight:600;
}
.hold-all-login .stat-block.warn .num{ color:#ffb454; }
.hold-all-login .stat-block.danger .num{ color:#ff7a6f; }

@keyframes loginFadeUp{
  from{ opacity:0; transform:translateY(14px); }
  to{ opacity:1; transform:translateY(0); }
}

.hold-all-login .slide-dots{
  position:relative;
  z-index:3;
  display:flex;
  justify-content:center;
  gap:9px;
  padding-bottom:34px;
}
.hold-all-login .slide-dots button{
  width:26px;
  height:4px;
  border-radius:3px;
  border:none;
  background:rgba(255,255,255,0.25);
  cursor:pointer;
  padding:0;
  margin:0;
  transition:background .25s, width .25s;
}
.hold-all-login .slide-dots button.active{
  background:var(--gold);
  width:38px;
}

/* ============ Error / success messages (restyled to fit the new form) ============ */
.hold-all-login .left_login .message_holder{
  margin-bottom:16px;
}
.hold-all-login .left_login .message{
  display:block;
  font-size:12.5px;
  line-height:1.5;
  padding:10px 14px;
  border-radius:8px;
}
.hold-all-login .left_login .error_message{
  background:#fdecea;
  color:var(--danger);
  border:1px solid #f5c6c2;
}
.hold-all-login .left_login .success_message,
.hold-all-login .left_login .notification_message{
  background:#eaf6ee;
  color:#1e7e34;
  border:1px solid #c3e6cb;
}

/* ============ Forgot / reset password pages (same layout, loaded via Account::showAuthTemplate) ============ */
.hold-all-login a.main_btn{ text-decoration:none; color:#fff; }
.hold-all-login .main_btn.auth-link-btn{ margin-top:4px; }
/* .left_login aligns children to flex-start, so this block must stretch itself to centre the badges/links like the login form does. */
.hold-all-login .auth-footer{ align-self:stretch; width:100%; }
.hold-all-login .sign_wver.auth-back-link{ margin-top:14px; }
.hold-all-login .main_btn + .sign_wver.auth-back-link{ margin-top:12px; }
.hold-all-login .auth-state-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:52px;
  height:52px;
  border-radius:14px;
  background:#e8f0fc;
  color:var(--blue);
  margin:6px 0 16px;
}
.hold-all-login .auth-state-icon svg{ width:26px; height:26px; }
.hold-all-login .auth-state-icon.danger{ background:#fdecea; color:var(--danger); }
.hold-all-login .login-subtitle strong{ color:var(--ink); font-weight:700; word-break:break-all; }

@media (max-width: 980px){
  .hold-all-login,
  .hold-all-login .hold-login-div{ flex-direction:column; height:auto; min-height:0; }
  .hold-all-login .left_login{ width:100%; min-height:0; box-shadow:none; padding:32px 24px 40px; overflow-y:visible; }
  .hold-all-login .right_login{ min-height:480px; }
  .hold-all-login .login-slide{ padding:16px 28px 48px; }
  .hold-all-login .slide-heading{ font-size:24px; }
}
