@font-face {
  font-family: 'Inter-Regular_Medium';
  src: url('fonts/Inter/Inter-VariableFont_slnt,wght.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter-Regular';
  src: url('fonts/Inter/Inter-VariableFont_slnt,wght.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter-Medium';
  src: url('fonts/Inter/Inter-VariableFont_slnt,wght.ttf') format('truetype');
}

@font-face {
  font-family: 'TitilliumWeb-SemiBold';
  src: url('fonts/Tittilium/static/TitilliumWeb-SemiBold.ttf') format('truetype');
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body.background {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

a {
  cursor: pointer;
}
a:hover {
  opacity: 05;
  text-decoration: none;
}

.nav-bar {
  background-image: linear-gradient(90deg, rgba(0, 22, 163, 1) 0%, rgba(2, 127, 128, 1) 100%);
  background-repeat: no-repeat;
}

.background {
  opacity: 1;
  background: white;
  height: 100%;
  width: 100%;
  display: flex;
}

.nshift-logo {
  float: left;
}

.nshift-logo img {
  width: 100px;
  height: auto;
  margin-left: 40px;
}

.main-nav {
  padding-top: 40px;
}

.main-nav-txt {
  color: #FFF !important;
  font-family: "Inter-Regular_Medium";
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0px;
  text-align: right;
  display: flex;
  justify-content: end;
  margin-right: 40px;
}

.main-nav-txt select {
  background-color: transparent;
  border: none;
  color: #FFF;
}

.main-nav-txt select option {
  color: black;
}
.main-nav-txt-color {
  color: rgba(255,255,255,1) !important;
  font-family: "Inter-Regular_Medium";
}

  .txt-divider {
    opacity: 1;
    background-color: rgba(255,255,255, 1);
  }

.down-arrow {
  opacity: 1;
}

.welcome-subtitle
{
	opacity: 1;
	color: rgba(255,255,255,1);
	font-family: "Inter-Regular_Medium";
	font-size: 14px;
	font-weight: 500;
	font-style: normal;
	letter-spacing: 0px;
	text-align: left;
	line-height: 20px;
}

.main-title
{
	opacity: 1;
	color: rgba(255,255,255,1);
	font-family: "TitilliumWeb-SemiBold";
	font-size: 36px;
	font-weight: 500;
	font-style: normal;
	letter-spacing: -0.2px;
	text-align: left;
	line-height: 42px;
}

.mobile-image {
  position: absolute;
  top: -85%;
  left: 35%;
  width: 400px;
}

.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 980px) {
  .container {
    position: static;
    transform: none;
  }
}

@media (min-width: 981px) {
  .container {
    max-width: 850px;
    margin-top: 2em;
  }
  .main-illustration-lg {
    width: 400px;
  }
}

@media (min-width: 1025px) {
  .container {
    max-width: 950px;
    margin-top: 0;
  }
  .main-illustration-lg {
    width: 450px;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: 1150px;
    margin-top: 0;
  }
  .main-illustration-lg {
    width: 550px;
  }
}


  #divLoginForm, #divForgotPassword {
    max-width: 410px;
  }

    #divLoginForm .card-body,
    #divForgotPassword .card-body {
      padding-left: 30px;
      padding-right: 30px;
    }

      #divLoginForm .card-body:first-of-type,
      #divForgotPassword .card-body:first-of-type {
        padding-top: 40px;
      }

  .form-rectangle {
    border-radius: 4px;
    box-shadow: 4px 4px 10px 4px rgba(0,0,0, 0.1);
    opacity: 1;
    background-color: rgba(255,255,255, 1);
  }

.form-info-txt
{
    opacity: 1;
    color: rgba(76,83,118,1);
    font-family: "Inter-Regular";
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0px;
    text-align: left;
    line-height: 24px;
  }

.form-textfield
{
    opacity: 1;
  }

  .form-control {
    border-radius: 8px;
  }

  .form-input-field {
    border-radius: 8px;
    border: 1px solid rgba(178,181,196, 1);
    box-shadow: 0px 0px 0px 2px rgba(204,206,216, 0.155267);
    opacity: 1;
    background-color: rgba(255,255,255, 1);
    display: block;
  }

.form-label
{
    opacity: 1;
    color: rgba(102,108,138,1);
    font-family: "Inter-Regular";
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0px;
    text-align: left;
    line-height: 16.8px;
    display: block;
  }

#username.form-label {
  font-size: 14px;
  font-weight: bold;
}

.form-title {
  color: rgba(0,10,60,1);
  font-family: "Inter-Regular";
  font-size: 18px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0px;
  text-align: left;
  line-height: 25px;
}

  .form-primary-button {
    height: 40px;
    width: 100%;
    border-radius: 20px;
    background-color: #3c7e86;
    border-color: #3c7e86;
  }

    .form-primary-button:hover {
      background-color: rgba(0, 10, 60, 1);
      border-color: rgba(0, 10, 60, 1);
    }

    .form-primary-button:focus {
      box-shadow: 0px 0px 0px 2px rgba(64,85,217, 1);
      opacity: 0.701544;
      background-color: rgba(0,10,60, 1);
    }

    .form-primary-button:disabled {
      background-color: rgba(138,178,182, 1);
    }

  .form-buttontext {
    opacity: 1;
    color: rgba(0,21,163,1);
    font-family: "Inter-Medium";
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0px;
    text-align: left;
    line-height: 24px;
  }

  #backToForgotPassword, #backToLogin {
    font-size: 12px;
  }

  .footer-box {
    position: relative;
    bottom: 30px;
  }

    .footer-box p {
      color: #FFFFFF;
      font-family: "Inter-Regular";
      font-size: 12px;
      line-height: 17px;
      margin-bottom: 0;
    }

      .footer-box p a {
        color: #fff;
      }

        .footer-box p a:hover {
          text-decoration: underline;
        }
  .welcome-box {
    position: absolute;
    top: 50px;
    left: 250px;
  }

  .image-box {
    float: left;
    z-index: -1;
    position: relative;
  }

  .form-rectangle-box {
    float: right;
  }

  .pswd-reset-container:has(.pswd-reset-message:empty),
  .pswd-reset-error-container:has(.pswd-reset-message:empty) {
    display: none;
  }

.privacy-notice {
  opacity: 1;
  color: rgba(51, 59, 99, 1);
  font-family: "Inter-Regular";
  font-size: 11px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.2px;
  text-align: left;
  line-height: 16px;
}
    .privacy-notice a {
      color: inherit;
      text-decoration: underline;
    }

.higlight-option::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  background: transparent;
  border-bottom: 3px solid #192CAC;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}


.higlight-option:hover::before {
  width: 100%;
}

.mfa-options-list {
  display: flex;
  flex-direction: column;
}

.mfa-options-list form {
  border-bottom: 1px solid #e5e5e5;
}

.mfa-options-list form:first-child {
  border-top: 1px solid #e5e5e5;
}

.mfa-option-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Inter-Regular';
  font-size: 14px;
  color: #2b2b2b;
  text-align: left;
}

.mfa-option-btn:hover {
  color: #000;
}

.portal-card-actions-label {
  font-family: 'Inter-Regular';
  font-size: 14px;
  color: #6b6b6b;
}

.mfa-options-list {
  display: flex;
  flex-direction: column;
}

.mfa-options-list form {
  border-bottom: 1px solid #e5e5e5;
}

.mfa-options-list form:first-child {
  border-top: 1px solid #e5e5e5;
}

.mfa-option-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Inter-Regular';
  font-size: 14px;
  color: #2b2b2b;
  text-align: left;
}

.mfa-option-btn:hover {
  color: #000;
}

.portal-card-actions-label {
  font-family: 'Inter-Regular';
  font-size: 14px;
  color: #6b6b6b;
}

.form-button-secondary {
  height: 40px;
  border-radius: 20px;
}

.otp-input-container {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.otp-digit {
  display: inline-block !important;
  width: 56px !important;
  height: 32px !important;
  border: 1px solid #c2c2c2 !important;
  border-radius: 4px;
  background: white !important;
  font-family: 'Inter-Regular';
  font-size: 16px;
  text-align: center;
  color: #1a1a1a;
  caret-color: #4044d9;
  padding: 0 !important;
  box-sizing: border-box;
  line-height: 32px;
}

.otp-digit:focus {
  outline: none;
  border-color: #4044d9 !important;
}

.otp-digit::placeholder { color: #666 !important; opacity: 1 !important; }

/* Recovery code (XXXXX-XXXXX) — same box-per-character styling as the OTP inputs,
   narrower boxes so the two groups of five fit the login card, wrapping as one
   group per row on small screens. */
.recovery-code-container {
  flex-wrap: wrap;
}

.recovery-code-group {
  display: flex;
  gap: 6px;
}

.otp-digit.recovery-digit {
  width: 34px !important;
}

.recovery-code-separator {
  align-self: center;
  color: #666;
  font-size: 16px;
}

.flex-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.flex-child{
  flex:1;
  align-content:center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
}

@media only screen and (max-width: 912px) {

  .mobile-image {
    display: none;
  }
}

@media (orientation: landscape) {
  body {
    flex-direction: row;
  }
}

@media (orientation: portrait) {
  body {
    flex-direction: column;
  }
}

/* New nShift Portal Design */
.portal-left-sidebar {
  width: 25%;
  min-height: 100vh;
  background: linear-gradient(180deg, #e296a0 36.637%, #222 99.482%);
  border-right: 1px solid #666;
  box-shadow: 1px 1px 6px 0px rgba(0,0,0,0.15);
  position: relative;
  display: none;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.portal-product-logo {
  width: 120px;
  height: 120px;
  background: #e296a0;
  border-radius: 4px;
  margin-top: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-product-logo img {
  width: 80px;
  height: 80px;
}

.portal-left-sidebar h1 {
  font-family: 'Inter-Medium';
  font-size: 32px;
  font-weight: 600;
  line-height: 48px;
  color: white;
  margin-top: 240px;
  position: absolute;
}

.portal-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

.portal-nav {
  background: white;
  border-bottom: 1px solid #dadada;
  box-shadow: 0px 1px 6px 0px rgba(0,0,0,0.15);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.portal-nav-bar {
  background: white;
  border-bottom: 1px solid #dadada;
  box-shadow: 0px 1px 6px 0px rgba(0,0,0,0.15);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.portal-nav .nshift-logo img,
.portal-nav-bar .nshift-logo img {
  width: 75.36px;
  height: 20px;
  margin-left: 0;
}

.portal-nav-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.portal-nav-link {
  color: #4044d9;
  font-family: 'Inter-Regular';
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  border-bottom: 1px solid #4044d9;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.portal-nav-link:hover {
  font-family: 'Inter-Medium';
}

.portal-nav-link img {
  filter: brightness(0) saturate(100%) invert(28%) sepia(88%) saturate(2603%) hue-rotate(233deg) brightness(93%) contrast(93%);
}

.portal-nav-label {
  font-family: 'Inter-Regular';
  font-size: 14px;
  line-height: 20px;
  color: #191919;
}

.portal-nav-divider {
  width: 1px;
  height: 18px;
  background: #dadada;
}

.portal-lang-button {
  background: transparent;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Inter-Medium';
  font-size: 14px;
  color: #2b2b2b;
  display: flex;
  gap: 4px;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.portal-lang-button svg {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.portal-lang-select {
  background: transparent;
  border: none;
  font-family: 'Inter-Medium';
  font-size: 14px;
  color: #2b2b2b;
  cursor: pointer;
  padding-right: 24px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
}

.portal-lang-select:focus {
  outline: none;
}

.portal-lang-select option {
  background: white;
  color: #2b2b2b;
}

.portal-content-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 40px 0 40px;
  min-height: calc(100vh - 64px - 32px);
}

.portal-login-card {
  width: 100%;
  max-width: 528px;
  background: white;
  border: 1px solid #dadada;
  border-radius: 6px;
  box-shadow: 1px 2px 20px 0px rgba(0,0,0,0.15);
}

.portal-card-header {
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.portal-card-header-text h2 {
  font-family: 'Inter-Medium';
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: black;
  margin: 0 0 2px 0;
}

.portal-card-header-text p {
  font-family: 'Inter-Regular';
  font-size: 16px;
  line-height: 24px;
  color: #666465;
  margin: 0;
}

.portal-card-icon {
  width: 32px;
  height: 30px;
}

.portal-card-divider {
  height: 1px;
  background: #dadada;
  width: 100%;
}

.portal-card-body {
  padding: 24px 40px;
}

.portal-callout-error {
  background: #fed1cd;
  border-top: 6px solid #c53728;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #7d251f;
}

.portal-callout-error-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.portal-callout-error-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Inter-Regular';
  font-size: 16px;
  line-height: 1.5;
}

.portal-callout-error-title {
  font-family: 'Inter-Medium';
  font-weight: 600;
  line-height: 24px;
}

.portal-callout-error-messages ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-callout-error-messages li {
  line-height: 1.5;
}

.portal-callout-success {
  background: #c7e7d6;
  border-top: 6px solid #21784a;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #156545;
}

.portal-callout-success-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Inter-Regular';
  font-size: 16px;
  line-height: 1.5;
  min-width: 0;
  width: 100%;
}

.portal-callout-success .table {
  table-layout: fixed;
  width: 100%;
}

.portal-callout-success .table td,
.portal-callout-success .table th {
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: normal;
}

.portal-form-field {
  margin-bottom: 20px;
}

.portal-form-field label {
  font-family: 'Inter-Medium';
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: #666465;
  display: block;
  margin-bottom: 0;
  position: absolute;
  top: -9px;
  left: 9px;
  background: white;
  padding: 0 4px;
  z-index: 1;
}

.portal-form-field input {
  width: 100%;
  height: 32px;
  padding: 8px;
  border: 1px solid #c2c2c2;
  border-radius: 4px;
  background: white;
  font-family: 'Inter-Regular';
  font-size: 14px;
  line-height: 16px;
  color: #666465;
}

.portal-form-field input:focus {
  outline: none;
}

.portal-form-field input:focus-visible {
  border-color: #4044d9;
}

.portal-form-field input[readonly] {
  background-color: #f5f5f5;
  color: #666465;
  cursor: not-allowed;
}

.portal-form-field-wrapper {
  position: relative;
}

.portal-card-actions {
  padding: 0 40px 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portal-card-actions-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.portal-btn-link {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 8px;
  min-width: 80px;
  font-family: 'Inter-Medium';
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  color: #4044d9;
  cursor: pointer;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  text-decoration: none;
}

.portal-btn-link:hover {
  opacity: 0.8;
}

.portal-btn-primary {
  background: #2b2b2b;
  border: 1px solid #2b2b2b;
  border-radius: 6px;
  padding: 8px;
  min-width: 80px;
  font-family: 'Inter-Medium';
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  color: #f2f2f2;
  cursor: pointer;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.portal-btn-secondary {
  background: white;
  border: 1px solid #2b2b2b;
  border-radius: 6px;
  padding: 8px;
  min-width: 80px;
  font-family: 'Inter-Medium';
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  color: #2b2b2b;
  cursor: pointer;
  height: 32px;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  box-sizing: border-box;
}

.portal-btn-secondary:hover {
  background: #f5f5f5;
}

.portal-btn-primary:hover {
  opacity: 0.9;
}

.portal-btn-primary:disabled,
.portal-btn-primary--loading {
  border: 1px solid var(--foundational-outline-disabled,#DDD8D9);
  background: var(--semantic-disabled-primary-default, #C9C3C5);
}

.portal-btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(242, 242, 242, 0.4);
  border-top-color: #f2f2f2;
  border-radius: 50%;
  animation: portal-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes portal-spin {
  to { transform: rotate(360deg); }
}


.portal-card-footer {
  padding: 40px;
}

.portal-card-footer p {
  font-family: 'Inter-Regular';
  font-size: 14px;
  line-height: 20px;
  color: #666465;
  margin: 0;
}

.portal-card-footer a {
  color: #4044d9;
  text-decoration: underline;
  font-family: 'Inter-Medium';
  font-weight: 500;
}

.portal-footer {
  box-sizing: border-box;
  background: #222;
  border-top: 4px solid #9c9c9c;
  padding: 40px 72px;
  box-shadow: 1px 2px 8px 0px rgba(0,0,0,0.15);
  width: 100%;
  margin-top: 0;
  flex-shrink: 0;
}

.portal-footer-content {
  max-width: 1776px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.portal-footer .nshift-logo img {
  width: 120.58px;
  height: 32px;
  margin-left: 0;
}

.portal-footer-link {
  color: #f5f5f5;
  font-family: 'Inter-Regular';
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.portal-footer-link img {
  filter: brightness(0) saturate(100%) invert(98%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(103%) contrast(96%);
}

.portal-footer-link:hover {
  opacity: 0.7;
}

.portal-footer-divider {
  height: 1px;
  background: #dadada;
  width: 100%;
}

.portal-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portal-footer-copyright {
  font-family: 'Inter-Medium';
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #f5f5f5;
}

.portal-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.portal-footer-links a {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Responsive breakpoints */
/* Stage 1: Narrow the sidebar when card doesn't fit with full sidebar */
/* Calculation: 464 (sidebar) + 528 (card) + 80 (padding) = 1072px */
/* Show left sidebar at 1440px and above (25% width as per Figma spec) */
@media (min-width: 1440px) {
  .portal-left-sidebar {
    display: flex;
  }
}

/* Tablet/medium screens (769px to 1439px) - sidebar hidden, card at fixed width */
@media (min-width: 769px) and (max-width: 1439px) {
  .portal-login-card {
    width: 528px;
    min-width: 528px;
    max-width: 528px;
  }
}

/* Mobile adjustments (below 768px - sidebar hidden, card responsive) */
@media (max-width: 768px) {
  .portal-nav,
  .portal-nav-bar {
    padding: 0 16px;
  }

  .portal-nav-customer,
  .portal-nav-book-demo,
  .portal-nav-customer-divider {
    display: none;
  }

  .portal-content-area {
    padding: 0;
    min-height: calc(100vh - 64px);
    align-items: flex-start;
  }

  .portal-login-card {
    width: 100%;
    min-width: auto;
    max-width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .portal-footer {
    padding: 40px 20px;
  }

  .portal-footer-bottom {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .portal-footer-links {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* Desktop layout for login actions: reset password on left, back+login on right */
.portal-card-actions-login,
.portal-card-actions-username {
  flex-direction: row-reverse;
}

.portal-card-actions-login .portal-action-login {
  order: 1;
}

.portal-card-actions-login .portal-action-back {
  order: 2;
  margin-right: 16px;
}

.portal-card-actions-login .portal-action-reset {
  order: 3;
  margin-right: auto;
}

@media (max-width: 480px) {
  .portal-card-header,
  .portal-card-body,
  .portal-card-footer {
    padding: 24px;
  }

  .portal-card-actions {
    padding: 0 24px 24px 24px;
    gap: 12px;
    align-items: stretch;
  }

  .portal-card-actions-login {
    flex-direction: column;
  }

  .portal-card-actions-login .portal-action-login {
    order: 1;
  }

  .portal-card-actions-login .portal-action-back {
    order: 2;
    margin-right: 0;
  }

  .portal-card-actions-login .portal-action-reset {
    order: 3;
    margin-right: 0;
  }

  .portal-btn-primary,
  .portal-btn-secondary,
  .portal-btn-link {
    width: 100%;
    justify-content: center;
  }

  .portal-nav-bar {
    padding: 0 16px;
  }
}

/* ==========================================================================
   Interstitial message pages (logout / login redirect)
   ========================================================================== */
.portal-message-card {
  text-align: center;
}

.portal-message-body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.portal-message-logo {
  width: 160px;
  max-width: 60%;
  height: auto;
  margin-bottom: 8px;
}

.portal-message-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.portal-message-title {
  font-family: 'Inter-Medium';
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: #191919;
  margin: 0;
}

.portal-message-text {
  font-family: 'Inter-Regular';
  font-size: 16px;
  line-height: 24px;
  color: #666465;
  margin: 0;
}

.portal-message-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #dadada;
  border-top-color: #4044d9;
  border-radius: 50%;
  animation: portal-message-spin 0.8s linear infinite;
}

@keyframes portal-message-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Sign-out iframes must load but stay invisible. */
iframe[data-sign-out] {
  display: none;
}

.hidden-xs-up {
  display: none !important;
}

@media (max-width: 480px) {
  .portal-message-body {
    padding: 32px 24px;
  }

  .portal-message-title {
    font-size: 18px;
    line-height: 26px;
  }
}

/* ============================================================
   Hide the browser-native × button on type="search" inputs so
   we can use our own mi-close button instead.
   ============================================================ */

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

/* ============================================================
   Button inside an input field  (.idsrv-btn-in-input)
   .idsrv-copy-btn is kept as an alias for backwards-compatibility.
   ============================================================ */

.idsrv-btn-in-input,
.idsrv-copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 0 0.375rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  opacity: 0.65;
  transition: opacity 0.15s;
}

.idsrv-btn-in-input:hover,
.idsrv-btn-in-input:focus,
.idsrv-btn-in-input:active,
.idsrv-copy-btn:hover,
.idsrv-copy-btn:focus,
.idsrv-copy-btn:active {
  opacity: 1;
}

.idsrv-btn-in-input:focus-visible,
.idsrv-copy-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Clear/close button variant — hidden by default, shown by JS (.is-visible).
   Must come AFTER the base .idsrv-btn-in-input rule so cascade order wins. */
.idsrv-btn-clear-input {
  display: none;
}

.idsrv-btn-clear-input.is-visible {
  display: inline-flex;
}

/* Input group: input + absolute-positioned button on the right */
.idsrv-copy-input-group {
  position: relative;
  display: flex;
  align-items: stretch;
}

.idsrv-copy-input-group .p-inputtext {
  padding-right: 2.25rem;
  flex: 1;
  min-width: 0;
}

.idsrv-copy-input-group .idsrv-btn-in-input,
.idsrv-copy-input-group .idsrv-copy-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2.25rem;
  padding: 0;
}

/* Clients table DCR and Copy columns */
.clients-col-dcr {
  width: 3rem;
}

.clients-col-copy {
  width: 4rem;
}

.clients-dcr-col-header,
.clients-dcr-col {
  text-align: center;
  vertical-align: middle;
}

.clients-copy-col-header,
.clients-copy-col {
  text-align: center;
  vertical-align: middle;
}

/* Consent page — scope groups and permission rows */
.consent-scope-group-title {
  font-family: 'Inter-SemiBold';
  font-size: 14px;
  color: #2b2b2b;
  margin: 16px 0 0;
}

.consent-scope-group-title:first-child {
  margin-top: 0;
}

.consent-scope-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.consent-scope-item {
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
}

.consent-scope-list .consent-scope-item:first-child {
  border-top: 1px solid #e5e5e5;
}

/* Keep the checkbox aligned to the first line when the label wraps */
.consent-scope-item .idsrv-checkbox {
  align-items: flex-start;
}

.consent-scope-item strong {
  font-family: 'Inter-SemiBold';
  font-size: 14px;
  color: #2b2b2b;
}

.consent-scope-required {
  font-family: 'Inter-Regular';
  font-size: 12px;
  color: #6b6b6b;
  margin-left: 4px;
  font-style: normal;
}

.consent-scope-emphasize {
  color: #b54708;
  margin-left: 4px;
  vertical-align: middle;
}

/* Indent secondary text to line up with the label, past the checkbox */
.consent-scope-description {
  font-family: 'Inter-Regular';
  font-size: 13px;
  color: #6b6b6b;
  margin: 4px 0 0 26px;
}

.consent-scope-description label {
  cursor: pointer;
}

.consent-scope-resources {
  list-style: disc;
  margin: 4px 0 0;
  padding-left: 18px;
}

.consent-remember {
  margin-top: 16px;
}
