/* Modern authentication shell. Scoped to the public STBNet login page. */
.auth-page,
.auth-page *,
.auth-page *::before,
.auth-page *::after {
  box-sizing: border-box;
}

html {
  background: #edf4fb;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 5%, rgba(0, 139, 208, 0.1), transparent 28rem),
    linear-gradient(135deg, #f8fbff 0%, #e7f1fa 100%);
  color: #243447;
}

#main-container.auth-page {
  width: min(1080px, calc(100% - 32px));
  min-width: 0;
  margin: 0 auto;
  padding: 28px 0 34px;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.auth-brand .logo {
  display: block;
  width: auto;
  height: 52px;
}

.auth-brand .adh-link {
  display: inline-flex;
  width: auto;
  height: auto;
  min-height: 54px;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 8px 14px 8px 9px;
  border: 1px solid #0878bb;
  border-radius: 9px;
  background: linear-gradient(135deg, #185491 0%, #008bd0 100%);
  color: #fff;
  float: none;
  font-family: Arial, sans-serif;
  box-shadow: 0 8px 20px rgba(24, 84, 145, 0.24);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.auth-brand .adh-link:hover,
.auth-brand .adh-link:focus {
  border-color: #123f70;
  background: linear-gradient(135deg, #123f70 0%, #0079b8 100%);
  color: #fff;
  box-shadow: 0 11px 24px rgba(24, 84, 145, 0.3);
  text-decoration: none;
  transform: translateY(-1px);
}

.auth-brand .adh-link:focus-visible {
  outline: 3px solid rgba(0, 139, 208, 0.25);
  outline-offset: 3px;
}

.adh-link-icon {
  display: inline-flex;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 15px;
}

.adh-link-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.15;
}

.adh-link-copy strong {
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}

.adh-link-copy small {
  margin-top: 3px;
  color: #dceeff;
  font-size: 10px;
  white-space: nowrap;
}

.adh-link-arrow {
  margin-left: 2px;
  color: #fff;
  font-size: 12px;
  transition: transform 0.15s ease;
}

.auth-brand .adh-link:hover .adh-link-arrow,
.auth-brand .adh-link:focus .adh-link-arrow {
  transform: translateX(2px);
}

.auth-intro {
  margin-bottom: 20px;
}

.auth-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #008bd0;
  font: 700 11px Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-page .heading_stb,
.auth-page .sub_heading_stb {
  float: none;
  font-style: normal;
}

.auth-page .heading_stb {
  margin: 0 0 4px;
  color: #18366d;
  font-size: 30px;
  line-height: 1.15;
}

.auth-page .sub_heading_stb {
  margin: 0 0 5px;
  color: #294966;
  font-size: 18px;
}

.auth-page .home_text {
  max-width: 720px;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.auth-showcase,
.auth-access {
  min-width: 0;
}

.auth-access form,
.auth-page .span21,
.auth-page .login-container,
.auth-page .login-table,
.auth-page .twofa-shell {
  min-width: 0;
  max-width: 100%;
}

.auth-page .flexslider {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #18366d;
  box-shadow: 0 12px 30px rgba(21, 57, 92, 0.12);
}

.auth-page .flexslider .slides img {
  width: 100%;
  min-height: 330px;
  object-fit: cover;
}

.auth-page .flex-caption {
  background: linear-gradient(90deg, rgba(15, 53, 93, 0.96), rgba(24, 84, 145, 0.88));
}

.stb-secure-campaign {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.72fr);
  min-height: 420px;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at 85% 20%, rgba(76, 197, 255, 0.28), transparent 17rem),
    linear-gradient(145deg, #102f62 0%, #075f9c 58%, #008bd0 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(21, 57, 92, 0.16);
}

.stb-secure-campaign-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 38px 10px 38px 34px;
}

.stb-secure-campaign-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #dff5ff;
  font: 700 10px Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stb-secure-campaign h2 {
  max-width: 420px;
  margin: 0 0 12px;
  color: #fff;
  font: 700 27px/1.18 Arial, sans-serif;
}

.stb-secure-campaign p {
  max-width: 410px;
  margin: 0 0 18px;
  color: #dceeff;
  font: 14px/1.55 Arial, sans-serif;
}

.stb-secure-campaign ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stb-secure-campaign li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #fff;
  font: 12px/1.4 Arial, sans-serif;
}

.stb-secure-campaign li i {
  display: inline-flex;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #27d980;
  color: #07365f;
  font-size: 9px;
}

.stb-secure-campaign-visual {
  position: relative;
  display: flex;
  z-index: 1;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  padding: 24px 18px 0 0;
}

.stb-secure-campaign-visual::after {
  position: absolute;
  right: 4%;
  bottom: -70px;
  left: -12%;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  content: "";
  filter: blur(2px);
}

.stb-secure-campaign-visual img {
  position: relative;
  z-index: 2;
  width: min(100%, 285px);
  height: auto;
  border-radius: 14px 14px 0 0;
  filter: drop-shadow(0 20px 22px rgba(4, 25, 57, 0.32));
}

.stb-secure-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.stb-secure-orbit--one {
  top: 18%;
  right: -45px;
  width: 230px;
  height: 230px;
}

.stb-secure-orbit--two {
  top: 7%;
  right: -87px;
  width: 320px;
  height: 320px;
}

.auth-security-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #cfe1f3;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.78);
  color: #42617d;
  font: 12px/1.45 Arial, sans-serif;
}

.auth-security-note > i {
  color: #008bd0;
  font-size: 19px;
}

.auth-security-note strong,
.auth-security-note span {
  display: block;
}

.auth-security-note strong {
  margin-bottom: 3px;
  color: #18366d;
  font-size: 13px;
}

.auth-page .span21.wh350 {
  width: 100%;
  max-width: none;
  float: none;
}

.auth-page .login-container {
  width: 100%;
  max-width: none;
  float: none;
  margin: 0;
  padding: 24px;
  border: 1px solid #d9e6f3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(21, 57, 92, 0.1);
}

.login-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 18px;
}

.login-heading-icon {
  display: inline-flex;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #e8f4fc;
  color: #008bd0;
  font-size: 17px;
}

.login-heading h2 {
  margin: 0 0 3px;
  color: #18366d;
  font: 700 20px/1.25 Arial, sans-serif;
}

.login-heading p {
  margin: 0;
  color: #64748b;
  font: 13px/1.4 Arial, sans-serif;
}

.auth-page .login-table {
  width: 100%;
  margin: 0;
  color: #35516f;
  font-family: Arial, sans-serif;
  border-collapse: collapse;
}

.auth-page .login-table th,
.auth-page .login-table td {
  padding: 0;
}

.auth-page .login-table label {
  display: inline-block;
  margin: 10px 0 6px;
  color: #35516f;
  font-size: 13px;
  font-weight: 700;
}

.auth-page .login-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #ced9e5;
  border-radius: 6px;
  background: #fff;
  color: #243447;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-page .login-input:focus {
  border-color: #008bd0;
  box-shadow: 0 0 0 3px rgba(0, 139, 208, 0.13);
}

.password-field {
  position: relative;
}

.auth-page #password {
  width: 100%;
  margin: 0;
  padding-right: 45px;
  float: none;
}

.auth-page .toggle-password {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #185491;
  cursor: pointer;
  transform: translateY(-50%);
}

.auth-page .toggle-password:hover,
.auth-page .toggle-password:focus {
  background: #eef6fd;
  outline: none;
}

.auth-page td.submit {
  padding-top: 18px;
}

.auth-page .login-submit {
  display: inline-flex;
  width: 100%;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: #185491;
  color: #fff;
  font: 700 14px Arial, sans-serif;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.auth-page .login-submit:hover,
.auth-page .login-submit:focus {
  background: #123f70;
  transform: translateY(-1px);
}

.forgot-password-link {
  color: #185491;
  font: 600 13px Arial, sans-serif;
  text-decoration: underline;
}

.auth-page h3.error {
  margin: 12px 0 0;
  padding: 10px;
  border-radius: 6px;
  background: #fdecec;
  font-size: 13px;
  line-height: 1.4;
}

.auth-page .clr-orange {
  color: #a22b22;
}

.auth-page .span21 > a.float-right {
  display: block;
  margin-top: 10px;
  float: none !important;
  text-align: right;
}

.auth-page .span21 > a.float-right img {
  max-height: 38px;
  width: auto;
}

.auth-secure-promo {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  margin: 0 0 14px;
  padding: 17px;
  border: 1px solid #b9dcf0;
  border-radius: 10px;
  background: #eaf6fd;
  color: #35516f;
  box-shadow: 0 8px 22px rgba(24, 84, 145, 0.08);
  font-family: Arial, sans-serif;
}

.auth-secure-promo img {
  width: 66px;
  height: 66px;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(21, 57, 92, 0.14);
}

.auth-secure-label {
  display: block;
  margin-bottom: 5px;
  color: #157347;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auth-secure-promo strong {
  display: block;
  color: #18366d;
  font-size: 14px;
  line-height: 1.35;
}

.auth-secure-promo p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

/* Bring the existing 2FA components into the same light banking card. */
.auth-page .twofa-heading h3,
.auth-page .stb-secure-help summary {
  color: #123f70;
}

.auth-page .twofa-heading p,
.auth-page .twofa-steps li,
.auth-page .stb-secure-help,
.auth-page .stb-secure-security-note {
  color: #365b7d;
}

.auth-page .stb-secure-promo .twofa-steps li {
  color: #ffffff;
}

.auth-page .stb-secure-qr-panel,
.auth-page .stb-secure-help-content {
  border-color: #cfe1f3;
  background: #eef6fd;
}

.auth-page .twofa-method-action {
  border-color: #8eb9dc;
  color: #185491;
}

.auth-page .twofa-method-action:hover,
.auth-page .twofa-method-action:focus {
  background: #185491;
  color: #fff;
}

.auth-page .twofa-reset-action {
  color: #185491;
}

.auth-page .twofa-reset-action:hover,
.auth-page .twofa-reset-action:focus {
  color: #123f70;
}

.auth-page .twofa-shell,
.auth-page .stb-secure-promo,
.auth-page .stb-secure-qr-panel,
.auth-page .stb-secure-alt,
.auth-page .twofa-feedback {
  max-width: 100%;
}

.auth-page .stb-secure-qr-stage,
.auth-page .stb-secure-qr,
.auth-page .pixels-secure-qr-timer-shell,
.auth-page .pixels-secure-qr-timer {
  max-width: 100%;
}

.auth-page .pixels-secure-qr-timer__panel,
.auth-page .pixels-secure-qr-timer__image {
  max-width: 100% !important;
  height: auto !important;
}

.auth-page .otp-inputs {
  display: grid;
  grid-template-columns: repeat(6, minmax(30px, 1fr));
  gap: 5px;
  width: 100%;
}

.auth-page .otp-box {
  width: 100% !important;
  min-width: 0;
  min-height: 40px;
}

.auth-page .twofa-actions,
.auth-page .stb-secure-store-links,
.auth-page .stb-secure-alt-actions {
  max-width: 100%;
}

.auth-page marquee {
  margin-top: 22px;
  border-radius: 6px;
}

.auth-page #extra,
.auth-page .topnav {
  width: 100%;
}

#footer {
  position: static;
  margin-top: 0;
  border-top: 1px solid #d5e1ec;
  background: #fff;
}

#footer ul {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  float: none;
  margin: 0;
  padding: 8px 15px;
}

#footer ul li {
  float: none;
}

@media (max-width: 840px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-access {
    width: min(100%, 560px);
    margin: 0 auto;
    order: 1;
  }

  .auth-showcase {
    order: 2;
  }

  .auth-page .flexslider .slides img {
    min-height: 260px;
  }

  .stb-secure-campaign {
    grid-template-columns: minmax(0, 1.1fr) minmax(190px, 0.7fr);
    min-height: 360px;
  }

  .stb-secure-campaign-copy {
    padding: 30px 10px 30px 28px;
  }
}

@media (max-width: 560px) {
  .container.special-block.div_block {
    width: 100% !important;
    padding: 8px 10px !important;
    border-radius: 0;
  }

  .container.special-block.div_block .row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    margin: 0;
  }

  .container.special-block.div_block .col-sm-3,
  .container.special-block.div_block .col-sm-6 {
    width: auto;
    min-width: 0;
    padding: 0;
  }

  .container.special-block.div_block img.img-fluid {
    width: 48px;
    height: 48px;
    border-radius: 10px !important;
    object-fit: cover;
  }

  .container.special-block.div_block br {
    display: none;
  }

  .container.special-block.div_block p {
    margin: 1px 0 !important;
    font-size: 10px !important;
    line-height: 1.25;
  }

  .container.special-block.div_block .btn-close,
  .container.special-block.div_block a.btn.btn-primary {
    display: block;
    min-width: 42px;
    margin: 3px 0 0 !important;
    padding: 4px 6px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    line-height: 1.2;
  }

  .container.special-block.div_block .btn-close {
    margin-top: 0 !important;
    margin-left: auto !important;
  }

  #main-container.auth-page {
    width: min(100% - 22px, 520px);
    padding: 14px 0 24px;
  }

  .auth-brand {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
  }

  .auth-brand .logo {
    height: 44px;
  }

  .auth-brand .adh-link {
    width: 100%;
    min-height: 50px;
    padding: 8px 12px 8px 9px;
  }

  .auth-brand .adh-link-arrow {
    margin-left: auto;
  }

  .auth-intro {
    margin-bottom: 14px;
  }

  .auth-eyebrow {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .auth-page .heading_stb {
    margin-bottom: 2px;
    font-size: 24px;
  }

  .auth-page .sub_heading_stb {
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.25;
  }

  .auth-page .home_text {
    font-size: 12.5px;
    line-height: 1.45;
  }

  .auth-layout {
    gap: 16px;
  }

  .auth-page .flexslider .slides img {
    min-height: 185px;
  }

  .auth-page .flex-caption {
    padding: 10px 12px;
    font-size: 11px;
  }

  .auth-page .flex-heading {
    font-size: 13px;
  }

  .auth-security-note {
    margin-top: 10px;
    padding: 12px;
  }

  .auth-page .login-container {
    padding: 18px;
  }

  .login-heading {
    margin-bottom: 13px;
  }

  .login-heading h2 {
    font-size: 18px;
  }

  .auth-page .login-input {
    min-height: 46px;
    font-size: 16px;
  }

  .auth-page .login-submit {
    height: 46px;
  }

  .auth-page td.submit {
    padding-top: 15px;
  }

  .auth-page .login-table,
  .auth-page .login-table tbody,
  .auth-page .login-table tr,
  .auth-page .login-table th,
  .auth-page .login-table td {
    display: block;
    width: 100%;
  }

  .auth-page .stb-secure-qr-panel {
    padding: 10px;
  }

  .auth-page .stb-secure-qr-stage {
    display: block;
    width: 100%;
  }

  .auth-page .pixels-secure-qr-timer-shell,
  .auth-page .pixels-secure-qr-timer,
  .auth-page .pixels-secure-qr-timer__panel,
  .auth-page .pixels-secure-qr-timer__image {
    width: 100% !important;
  }

  .auth-secure-promo {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 11px;
    margin-bottom: 10px;
    padding: 12px;
  }

  .auth-secure-promo img {
    width: 52px;
    height: 52px;
  }

  .auth-secure-promo p {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.4;
  }

  .auth-page .span21 > a.float-right {
    margin-top: 7px;
  }

  .auth-page marquee {
    margin-top: 16px;
    font-size: 13px;
  }

  .auth-page #extra {
    padding-top: 5px;
  }

  .auth-page .topnav {
    display: flex;
    width: min(100%, 280px);
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    margin: 8px auto 12px;
    padding: 0;
  }

  .auth-page .topnav li,
  .auth-page .topnav li.pull-right {
    padding: 0;
    float: none !important;
  }

  .auth-page .topnav .btn-floating {
    margin: 1px;
  }

  .stb-secure-campaign {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .stb-secure-campaign-copy {
    padding: 26px 24px 8px;
  }

  .stb-secure-campaign h2 {
    font-size: 23px;
  }

  .stb-secure-campaign-visual {
    min-height: 240px;
    padding: 8px 38px 0;
  }

  .stb-secure-campaign-visual img {
    width: min(100%, 260px);
  }

  .auth-page .twofa-actions,
  .auth-page .stb-secure-alt-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-page .twofa-actions > *,
  .auth-page .stb-secure-alt-actions > * {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .auth-page .stb-secure-store-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-page .stb-secure-store-link {
    width: 100%;
    min-height: 44px;
  }

  #footer ul li:nth-child(even) {
    display: none;
  }
}

@media (max-width: 360px) {
  #main-container.auth-page {
    width: calc(100% - 16px);
  }

  .auth-brand {
    gap: 10px;
  }

  .auth-brand .logo {
    max-width: 155px;
    height: auto;
  }

  .auth-brand .adh-link {
    max-width: none;
  }

  .auth-page .login-container {
    padding: 15px;
  }

  .auth-secure-promo {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .auth-secure-promo img {
    width: 42px;
    height: 42px;
  }

  .auth-secure-promo strong {
    font-size: 13px;
  }

  .login-heading-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .auth-page .otp-inputs {
    gap: 3px;
  }

  .auth-page .otp-box {
    min-height: 38px;
    padding-right: 2px;
    padding-left: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page *,
  .auth-page *::before,
  .auth-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
