/* NGPS tenant portal theme (C-036). Loaded after /hk-brand/login.css on ngps.hooshmandkahroba.ir only.
   Full-screen city background, hero text over it, light glass card on the right. */

/* ---------- palette and background ---------- */
body.hk-auth {
  --hk-card: rgba(233, 240, 251, 0.94);
  --hk-card-border: rgba(255, 255, 255, 0.55);
  --hk-field: #f5f8fd;
  --hk-field-border: rgba(40, 90, 170, 0.18);
  --hk-text: #0c2148;
  --hk-muted: #40506c;
  --hk-blue: #0a6be3;
  --hk-blue-2: #0857c4;
  --hk-link: #0a6be3;
  background: #061a3d url("/hk-brand/sites/ngps/bg.jpg") center center / cover no-repeat fixed !important;
}
body.hk-auth::before { display: none; }
body.hk-auth .tb-login-content::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 16, 44, 0.62) 0%, rgba(4, 16, 44, 0.12) 38%, rgba(4, 16, 44, 0.05) 66%, rgba(4, 14, 38, 0.82) 84%, rgba(4, 14, 38, 0.9) 100%);
  pointer-events: none;
}

/* ---------- layout: the card stays on the right in both languages ---------- */
body.hk-auth .tb-login-content {
  direction: ltr !important;
  padding: clamp(20px, 3.5vh, 44px) clamp(24px, 4vw, 72px) 72px;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 470px);
  align-items: stretch;
  color: #fff;
}
body.hk-fa .tb-login-content > * { direction: rtl; }
body.hk-auth .tb-login-content > mat-card { align-self: center; }

/* ---------- hero ---------- */
.ng-hero { justify-content: flex-start; gap: 0; color: #fff; min-height: calc(100vh - 110px); }
.ng-top { display: flex; direction: ltr; align-items: flex-start; gap: 24px; }
.ng-top > * { direction: rtl; }
body:not(.hk-fa) .ng-top > * { direction: ltr; }
.ng-brand { display: flex; direction: ltr !important; align-items: center; gap: 20px; margin-left: clamp(0px, 19vw, 340px); color: #fff !important; text-decoration: none !important; }
body.hk-fa .ng-brand > span:last-child { direction: rtl; }
.ng-brand img { width: clamp(84px, 7.6vw, 124px); height: auto; filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.55)); }
.ng-sep { align-self: stretch; width: 1px; margin: 8px 0; background: rgba(255, 255, 255, 0.34); }
.ng-brand b { display: block; font-size: clamp(22px, 2.3vw, 36px); font-weight: 700; line-height: 1.25; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
.ng-brand small { display: block; margin-top: 6px; font-size: clamp(13px, 1.15vw, 18px); color: #d4dff0; }
.ng-motto { position: fixed; top: clamp(20px, 4vh, 44px); right: clamp(24px, 4vw, 72px); z-index: 2; display: flex; flex-direction: column; font-size: clamp(13px, 1.15vw, 18px); font-weight: 500; line-height: 1.7; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); white-space: nowrap; }
.ng-title { align-self: flex-end; margin-top: clamp(14px, 4vh, 44px); margin-left: clamp(0px, 24vw, 420px); text-shadow: 0 3px 16px rgba(0, 0, 0, 0.75); }
body:not(.hk-fa) .ng-title { align-self: flex-start; margin-left: clamp(0px, 24vw, 420px); }
.ng-title h2 { margin: 0; font-size: clamp(30px, 3.5vw, 54px); font-weight: 700; line-height: 1.25; color: #fff; }
.ng-title em {
  font-family: var(--hk-font-title); font-style: normal; text-shadow: none;
  background: linear-gradient(95deg, #ffffff 0%, #7fe9ff 45%, #38d6ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px rgba(56, 214, 255, 0.85)) drop-shadow(0 2px 6px rgba(0, 8, 30, 0.9));
}
.ng-title p { margin: 8px 0 0; font-size: clamp(14px, 1.3vw, 20px); color: #eaf1fc; }
.ng-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: auto; max-width: 780px; }
.ng-feat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 10px; text-align: center; }
.ng-feat + .ng-feat { border-inline-start: 1px solid rgba(255, 255, 255, 0.22); }
.ng-feat svg { width: 34px; height: 34px; margin-bottom: 6px; color: #38d6ff; filter: drop-shadow(0 0 8px rgba(56, 214, 255, 0.6)); }
.ng-feat b { font-size: clamp(12px, 1vw, 15px); font-weight: 600; color: #fff; }
.ng-feat small { font-size: clamp(11px, 0.9vw, 13px); color: #d9e4f4; }

/* ---------- login card: deep navy glass with a cyan edge ---------- */
body.hk-auth .tb-login-content > mat-card {
  --ng-cyan: #38d6ff;
  --ng-blue: #1f7bff;
  --mdc-outlined-text-field-input-text-color: #fff;
  --mdc-filled-text-field-input-text-color: #fff;
  --mdc-outlined-text-field-label-text-color: #b9d4f2;
  --mdc-filled-text-field-label-text-color: #b9d4f2;
  --mdc-outlined-text-field-focus-label-text-color: var(--ng-cyan);
  --mdc-outlined-text-field-outline-color: rgba(120, 190, 255, 0.28);
  --mdc-outlined-text-field-hover-outline-color: rgba(56, 214, 255, 0.6);
  --mdc-outlined-text-field-focus-outline-color: var(--ng-cyan);
  --mat-form-field-leading-icon-color: var(--ng-cyan);
  background:
    radial-gradient(420px 240px at 50% -6%, rgba(56, 214, 255, 0.26), transparent 70%),
    radial-gradient(420px 300px at 100% 100%, rgba(31, 123, 255, 0.22), transparent 70%),
    linear-gradient(160deg, rgba(10, 30, 76, 0.72) 0%, rgba(7, 20, 54, 0.66) 100%) !important;
  border: 1px solid rgba(110, 200, 255, 0.42);
  border-radius: 26px !important;
  box-shadow: 0 34px 90px rgba(1, 8, 28, 0.72), 0 0 46px rgba(31, 123, 255, 0.26), inset 0 1px 0 rgba(170, 230, 255, 0.5) !important;
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  color: #fff;
}
/* bright top edge */
body.hk-auth .tb-login-content > mat-card::before {
  content: ""; position: absolute; top: -1px; left: 12%; right: 12%; height: 2px; border-radius: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, #38d6ff, #7fe9ff, #38d6ff, transparent);
  box-shadow: 0 0 16px rgba(56, 214, 255, 0.8);
}
.ng-card-pin { position: relative; display: block; width: clamp(56px, 8vh, 74px); margin-bottom: 10px; color: #38d6ff; line-height: 0; filter: drop-shadow(0 0 14px rgba(56, 214, 255, 0.75)); }
.ng-card-pin svg { position: relative; width: 100%; height: auto; }
.ng-card-pin::after {
  content: ""; position: absolute; left: 50%; bottom: -3px; width: 62%; height: 12px; margin-left: -31%;
  border: 2px solid rgba(56, 214, 255, 0.85); border-radius: 50%; animation: ng-pulse 2.6s ease-out infinite;
}
@keyframes ng-pulse { 0% { transform: scale(0.55); opacity: 1; } 100% { transform: scale(1.75); opacity: 0; } }
body.hk-auth .ng-card-head .hk-card-title { color: #fff !important; font-size: clamp(20px, 1.7vw, 25px) !important; font-weight: 700 !important; text-shadow: 0 2px 14px rgba(0, 16, 60, 0.8); }
body.hk-auth .ng-card-head .hk-card-sub { color: #c5ddf7 !important; }
body.hk-auth .tb-login-form input { color: #fff !important; -webkit-text-fill-color: #fff !important; caret-color: #38d6ff; }
body.hk-auth .tb-login-form input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #0d2a62 inset !important; }
body.hk-auth .tb-login-form .mat-mdc-text-field-wrapper { background: rgba(4, 16, 46, 0.5) !important; border-radius: 14px !important; transition: box-shadow 0.2s ease; }
body.hk-auth .tb-login-form .mat-mdc-form-field.mat-focused .mat-mdc-text-field-wrapper { box-shadow: 0 0 0 1px rgba(56, 214, 255, 0.55), 0 0 22px rgba(56, 214, 255, 0.34); }
body.hk-auth .tb-login-form mat-label, body.hk-auth .tb-login-form .mdc-floating-label { color: #b9d4f2 !important; }
body.hk-auth .tb-login-form mat-icon,
body.hk-auth .tb-login-form .mat-mdc-form-field-icon-prefix,
body.hk-auth .tb-login-form .mat-mdc-form-field-icon-suffix,
body.hk-auth .tb-login-form .mat-mdc-icon-button { color: #38d6ff !important; opacity: 1 !important; --mdc-icon-button-icon-color: #38d6ff; }
body.hk-auth .tb-login-form .tb-reset-password, body.hk-auth .tb-login-form .tb-reset-password .mdc-button__label { color: #7fe0ff !important; }
body.hk-auth .tb-login-content .tb-action-button {
  background: linear-gradient(95deg, #27c8ff 0%, #1f7bff 58%, #2356e8 100%) !important;
  box-shadow: 0 12px 30px rgba(31, 123, 255, 0.55), 0 0 22px rgba(56, 214, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
body.hk-auth .tb-login-content .tb-action-button:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 16px 36px rgba(31, 123, 255, 0.65), 0 0 30px rgba(56, 214, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important; }
body.hk-auth .hk-lang { background: rgba(4, 16, 46, 0.55) !important; border-color: rgba(110, 200, 255, 0.34) !important; }
body.hk-auth .hk-lang button { color: #c5ddf7 !important; }
body.hk-auth .hk-lang button.hk-active { color: #fff !important; background: linear-gradient(95deg, #27c8ff, #1f7bff) !important; }
.ng-card-foot { font-size: 13px !important; }
.ng-card-foot::before, .ng-card-foot::after { background: rgba(110, 200, 255, 0.3) !important; }
.ng-card-foot a { color: #7fe0ff !important; text-decoration: none; font-weight: 500; }
.ng-card-foot a:hover { color: #fff !important; text-decoration: underline; }

/* ---------- bottom bar ---------- */
.ng-footer {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px clamp(24px, 4vw, 72px);
  border-top: 1px solid rgba(120, 170, 255, 0.28);
  background: rgba(3, 14, 40, 0.68);
  color: #dbe6f6; font-size: 13px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ng-footer a { color: #fff !important; text-decoration: none; }
.ng-footer a:hover { text-decoration: underline; }
.ng-support { display: inline-flex; align-items: center; gap: 8px; }
.ng-support svg { width: 22px; height: 22px; color: #38d6ff; }
body:not(.hk-auth) .ng-footer { display: none; }

/* ---------- boot loader ---------- */
#tb-loading-spinner.tb-loading-spinner {
  background:
    radial-gradient(700px 500px at 50% 42%, rgba(57, 168, 255, 0.2), transparent 62%),
    linear-gradient(160deg, #0a2a5e 0%, #061a3d 58%, #040f28 100%);
}
#tb-loading-spinner.tb-loading-spinner::before { background-image: url("/hk-brand/sites/ngps/logo.png"); }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  body.hk-auth .tb-login-content { grid-template-columns: minmax(0, 1fr); padding-bottom: 96px; }
  .ng-hero { min-height: 0; }
  .ng-motto, .ng-feats { display: none; }
  .ng-title { margin-top: 18px; }
  .ng-footer { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-height: 760px) {
  .ng-feat small { display: none; }
  .ng-title { margin-top: 12px; }
}

/* ---------- inner pages: same navy and cyan as the login ---------- */
body:not(.hk-auth) .tb-site-sidenav,
body:not(.hk-auth) .tb-site-sidenav .mat-drawer-inner-container { background: linear-gradient(180deg, #0a1f4e 0%, #071536 100%) !important; }
body:not(.hk-auth) .tb-primary-toolbar,
body:not(.hk-auth) mat-toolbar.mat-primary { background: linear-gradient(95deg, #0a1f4e 0%, #0d3a86 100%) !important; }
body:not(.hk-auth) .tb-side-menu a.tb-active, body:not(.hk-auth) .tb-side-menu a:hover { background: rgba(56, 214, 255, 0.16) !important; box-shadow: inset 3px 0 0 #38d6ff; }
body:not(.hk-auth) .tb-side-menu li:has(a[href*="edge"]) { display: none; }
