body:has(.portal-password){margin:0;background:#f3f7f7;color:#17364a;font-family:Inter,"Segoe UI",Tahoma,Arial,sans-serif}
body:has(.portal-password) :is(.page-container,.page-content-wrapper,.page_content,.container,main){max-width:none;width:100%;padding:0;margin:0}
.portal-password{min-height:100dvh;display:flex;flex-direction:column;color:#17364a}
.password-header,.password-footer{display:flex;align-items:center;gap:12px;padding:13px clamp(16px,4vw,64px)}
.password-header{background:#112b40;color:white}.password-header b{background:#b2eee0;color:#124f47;border-radius:10px;width:36px;height:36px;display:grid;place-items:center}
.password-header span{border-inline-start:1px solid #78939e;padding-inline-start:12px;font-size:18.2px;font-weight:600;line-height:1.25}.password-content{flex:1;display:grid;align-items:center;justify-items:center;padding:20px}
.portal-password .for-reset-password{padding:0;min-height:0;width:min(520px,calc(100vw - 36px))}
.portal-password .page-card{width:100%;max-width:none;border:1px solid #d8e3e6;border-radius:14px;padding:clamp(18px,3vw,36px);box-shadow:0 4px 20px #152c4a09;background:white}
.portal-password .page-card-head,.portal-password label{text-align:start}
.portal-password .app-logo{display:none}.portal-password .form-control{background:#f8fafb;border:1px solid #b8cbd0;border-radius:7px;min-height:40px}
.portal-password #update{background:#096658;color:white;border-radius:7px;min-height:42px}.portal-password #update:disabled{opacity:.5}
.password-footer{color:#526a78;border-top:1px solid #d9e3e6;background:white;font-size:13px}.password-footer img{width:40px;height:28px;object-fit:contain}
.password-header a{color:#fff;margin-inline-start:auto}.review-main{width:min(100% - 32px,940px)!important;margin:32px auto!important}.review-main article{border:1px solid #d8e3e6;background:white;padding:22px;border-radius:10px;margin-block:16px}.review-main textarea{display:block;width:100%;box-sizing:border-box;margin-block:8px 16px;border:1px solid #b5c9cd;border-radius:6px;padding:8px}.review-main button{background:#096658;color:white;border:0;padding:9px 16px;border-radius:6px;margin-inline-end:10px}.review-main blockquote{white-space:pre-wrap}
.portal-password .password-content section[class^=for-]{padding:0;margin:0;min-height:0}.portal-password .page-card-head-text,.portal-password .page-card-head h4{text-align:start!important}.portal-password .es-button[data-variant=solid]{background:#096658;color:#fff;border-radius:7px;min-height:42px}.portal-password .email-field,.portal-password .password-field{width:100%}.portal-password a[href="#forgot"]{color:#096658;font-weight:600}.portal-password #twofactor_div,.portal-password #two_factor_div{width:min(460px,100%)}.portal-password .password-content{min-width:0}.portal-password .form-verify{width:100%}
#otp_div:has(#enrollment-qr){text-align:start}#otp_div:has(#enrollment-qr) h2{font-size:1.3rem;margin:0 0 .4rem}#enrollment-qr{display:block;width:min(100%,244px);height:auto;aspect-ratio:1;margin:12px auto 14px;image-rendering:pixelated;background:white}#otp_div:has(#enrollment-qr) label{display:block;margin:0 0 .3rem;font-weight:600}

.recovery-page { background: #f4f7f8; }
.recovery-page .password-header { min-height: 64px; }
.recovery-page .password-header strong { font-size: 20px; color: #fff; }
.recovery-page .password-content { padding: clamp(18px,4vw,48px) 16px; }
.portal-password .recovery-card.for-reset-password { width: min(100%,460px); min-height: 0; margin: 0; box-sizing: border-box; padding: clamp(22px,4vw,36px); background: #fff; border: 1px solid #d9e3e6; border-top: 4px solid #096658; border-radius: 14px; box-shadow: 0 4px 20px #112b400a; text-align: start; }
.recovery-card h1 { font: inherit; font-size: clamp(26px,4vw,32px); line-height: 1.2; font-weight: 700; margin: 0 0 8px; color: #17364a; letter-spacing: normal; }
.recovery-card .page-card-subtitle { margin: 0 0 22px; font-size: 15px; color: #526a78; }
.recovery-card .recovery-field { margin: 0 0 16px; }
.recovery-label { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; margin-bottom: 6px; }
.recovery-label label { margin: 0; font-weight: 600; color: #193447; }
.recovery-label .password-strength-indicator, .recovery-card .password-hint, .recovery-card .password-mismatch-message { font-size: 13px; }
.recovery-input { position: relative; }
.recovery-input .form-control { width: 100%; height: 44px; padding: 8px 12px; box-sizing: border-box; }
.recovery-page[dir=ltr] .recovery-input input { padding-right: 46px; }
.recovery-page[dir=rtl] .recovery-input input { padding-left: 46px; }
.recovery-input .toggle-password { position: absolute; inset-inline-end: 0; top: 0; height: 44px; width: 44px; display: grid; place-items: center; background: transparent; border: 0; border-radius: 7px; color: #526a78; }
.recovery-card #update { width: 100%; margin-top: 6px; font-weight: 650; }
.recovery-card .back-to-login { display: block; width: fit-content; margin: 16px auto 0; font-weight: 600; color: #096658; }
.recovery-page :is(input,button,a):focus-visible { outline: 3px solid #2674ac; outline-offset: 2px; }
.recovery-page .password-header a:focus-visible { outline-color: #86d7bf; }
.recovery-card .login-error-banner, .recovery-card .login-success-banner { margin-bottom: 16px; }

.portal-password #otp-error { color: #982d27; font-size: 14px; margin: 8px 0 0; text-align: start; }
.portal-password #otp-error:empty { margin: 0; }
.portal-password #otp-error a { color: #096658; text-decoration: underline; }

.password-header > img { flex: none; object-fit: contain; }
.signin-panel {
  display: grid;
  grid-template-columns: 1fr minmax(0, 0.95fr);
  width: min(100%, 990px);
  min-height: 440px;
  background: white;
  border: 1px solid #d9e3e6;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px #112b400b;
}
.signin-photo {
  --portal-art: url("/assets/tabiha_portal/signin-customer.webp");
  display: flex;
  align-items: flex-end;
  background: #081924 var(--portal-art) center / cover no-repeat;
}
.portal-password[data-portal="agent"] .signin-photo {
  --portal-art: url("/assets/tabiha_portal/signin-agent.webp");
}
.portal-password[data-portal="admin"] .signin-photo {
  --portal-art: url("/assets/tabiha_portal/signin-admin.webp");
}
.signin-caption {
  width: 100%;
  padding: 58px clamp(20px, 3vw, 38px) 30px;
  background: linear-gradient(transparent, rgba(4, 18, 26, .92) 65%);
  color: #fff;
  font-size: clamp(20px, 2.15vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  text-align: start;
  text-wrap: balance;
}
.signin-panel:has(.form-verify) .signin-photo {
  background-image: url("/assets/tabiha_portal/verification-desk.webp");
}
.signin-panel:has(.form-verify) .signin-caption { display: none; }
.signin-form { min-width: 0; align-self: center; }
.portal-password .signin-form .page-card {
  min-height: 0;
  margin: 0;
  padding: clamp(26px, 3.7vw, 48px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 760px) {
  .signin-panel { width: min(100%, 460px); min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .signin-photo { height: clamp(125px, 36vw, 155px); background-position: center 42%; }
  .signin-caption { padding: 28px 18px 12px; font-size: 18px; }
  .portal-password .signin-form .page-card { padding: 24px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .signin-photo { display: none; }
}
@media (max-width: 380px) {
  .password-header { gap: 8px; padding-inline: 12px; }
  .password-header span { padding-inline-start: 8px; }
}

.portal-retry { display:inline-block; padding:10px 18px; border-radius:7px; background:#086554; color:#fff; text-decoration:none; font-weight:600; }
.portal-retry:focus-visible { outline:3px solid #1574a7; outline-offset:3px; }
.setup-code { display:block; width:min(220px,90%); height:auto; margin:16px auto; }

.portal-password .login-portal-field {display:grid;gap:6px;width:100%;margin:0;font-size:14px;font-weight:600;color:#405a68}
.portal-password .login-portal-field select {width:100%;padding-inline:10px;cursor:pointer}
.portal-password .portal-access {display:grid;justify-items:start;gap:12px}
.portal-password .portal-access h1 {font-size:1.45rem;line-height:1.3;margin:0}
.portal-password .portal-access p {margin:0}
.portal-password #portal-signout {background:white;color:#096658;border:1px solid #a6c1bc;border-radius:7px;padding:9px 16px}
.portal-password #portal-access-error {color:#982d27}
