body.login-v2-page {
  min-height: 100vh;
}

.login-v2-page .first-access-card {
  max-width: 1080px;
  position: relative;
  z-index: 0;
}

.login-v2-page .sticky-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1200;
  isolation: isolate;
  background: var(--sticky-bg);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-v2-page .hero-section {
  z-index: 0;
}

.login-v2-page .p-first-access__content {
  width: 100%;
}

.login-v2-page .p-first-access__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  padding: 0 1.5rem 1.5rem;
}

.login-v2-page .p-first-access__note {
  width: 100%;
  max-width: 1080px;
  height: auto;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.login-v2-page .p-first-access__note ol {
  margin: 0;
  padding-left: 1.3rem;
  color: var(--text-main);
  line-height: 1.75;
}

.login-v2-page .p-first-access__note li + li {
  margin-top: 0.55rem;
}

.login-v2-page .public-exception-card {
  max-width: 760px;
}

.login-v2-page .lang-nav {
  gap: 0.25rem;
  align-items: center;
}

.login-v2-page .language-link {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.login-v2-page .language-link.is-active {
  color: #ffffff;
}

.login-v2-page .language-link:not(.is-active) {
  color: rgba(255, 255, 255, 0.65);
}

.login-v2-page .language-link:hover,
.login-v2-page .language-link:focus {
  color: #ffffff;
  opacity: 1;
  text-decoration: none;
}

.login-v2-page #OptionsLanguage .dropdown-item.active,
.login-v2-page #OptionsLanguage .dropdown-item:active {
  color: #ffffff;
  background-color: var(--header-green);
}

.login-v2-page .login-panel-step {
  display: none;
}

.login-v2-page .login-panel-step.show {
  display: block;
}

.login-v2-page .input-group .input-group-text {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
  border-left: 0;
  box-shadow: none;
}

.login-v2-page .input-group > .form-control {
  border-right: 0;
}

.login-v2-page .input-group > .form-control:focus {
  border-right: 0;
}

.login-v2-page .input-group .input-group-text .toggle-password {
  color: #6b7280;
  font-size: 1rem;
}

.login-v2-page .captcha-and-img {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.login-v2-page .captcha-and-img .form-control {
  flex: 1 1 auto;
}

.login-v2-page .captcha-and-img img {
  width: 120px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(54, 124, 69, 0.18);
  background: #ffffff;
  cursor: pointer;
  object-fit: contain;
}

.login-v2-page input[type=password]::-ms-reveal,
.login-v2-page input[type=password]::-ms-clear,
.login-v2-page input[type=password]::-webkit-credentials-auto-fill-button {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.login-v2-page .btn-primary-bank:disabled,
.login-v2-page .btn-primary-bank.disabled {
  background: #8ca48f;
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.login-v2-page .btn-primary-bank:disabled:hover,
.login-v2-page .btn-primary-bank.disabled:hover {
  background: #8ca48f;
  box-shadow: none;
  transform: none;
}

.login-v2-page .inline-link-button {
  color: var(--primary-color);
  text-decoration: underline;
}

.login-v2-page .inline-link-button:hover {
  color: var(--primary-hover);
}

.login-v2-page .alert-close-btn,
.login-v2-page .inline-link-button {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  line-height: inherit;
  box-shadow: none;
}

.login-v2-page .alert-close-btn:focus,
.login-v2-page .inline-link-button:focus {
  outline: 0;
}

.login-v2-page .alert-close-btn:focus-visible,
.login-v2-page .inline-link-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

.login-v2-page .action-btn-glass.btn-link-reset {
  -webkit-appearance: none;
  appearance: none;
  border-right: 0;
  border-bottom: 0;
  font: inherit;
}

.login-v2-page .alert-close-btn {
  margin-left: auto;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  opacity: 0.85;
}

.login-v2-page .alert-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  opacity: 1;
}

.login-v2-page .newsContentsCss {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 10rem;
}

.login-v2-page .news-item-link {
  cursor: pointer;
}

.login-v2-page .news-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.login-v2-page .news-item-text {
  color: #1f2937;
  font-weight: 500;
}

.login-v2-page .news-detail-label {
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.login-v2-page .news-list-empty {
  display: block;
  color: rgba(31, 41, 55, 0.8);
}

.login-v2-page .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.login-v2-page .footer-links .footer-text-muted {
  cursor: pointer;
}

.login-v2-page .brand-footer-image {
  max-width: 180px;
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
}

.login-v2-page .login-hero-slide {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.login-v2-page .login-hero-slide-3 {
  background-image: url("../../img/content/login/hongkong-view.webp");
}

.login-v2-page .modal-notice-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 2000;
}

.login-v2-page .modal-notice-container.show {
  opacity: 1;
  visibility: visible;
}

.login-v2-page .modal-notice-container .mask {
  position: absolute;
  inset: 0;
  background: rgba(17, 27, 21, 0.55);
}

.login-v2-page .modal-box-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 640px);
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
  z-index: 2;
}

.login-v2-page .modal-form-download .modal-box-container {
  width: min(84vw, 760px);
  max-height: 78vh;
  display: flex;
  flex-direction: column;
}

.login-v2-page .modal-form-download .modal-body-custom {
  max-height: calc(78vh - 72px);
  overflow-y: auto;
  padding: 1rem 1.25rem 1.25rem;
}

.login-v2-page .modal-form-download .form-table-list {
  gap: 0;
}

.login-v2-page .modal-form-download .form-table-title,
.login-v2-page .modal-form-download .form-table-row {
  grid-template-columns: 84px 1fr;
}

.login-v2-page .modal-box-container-sm {
  width: min(92vw, 420px);
}

.login-v2-page .modal-box-container-loading {
  width: min(92vw, 420px);
  background: #f7f7f7;
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.login-v2-page .modal-title-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #3f7b4a, #5f9f68);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 1rem 1.25rem;
}

.login-v2-page .modal-body-custom {
  padding: 1.25rem;
  color: #26392d;
  line-height: 1.7;
}

.login-v2-page .modal-loading-body-custom {
  padding: 24px 26px 22px;
}

.login-v2-page .modal-loading-body-custom .loading-text {
  width: 100%;
  margin: 0 auto 16px;
  color: #4f8662;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
}

.login-v2-page .modal-loading-body-custom .loading-bar-container {
  width: 100%;
  margin: 0 auto;
  padding: 14px 0 12px;
  gap: 4px;
  border-top-color: #e3e6e3;
  border-bottom-color: #e3e6e3;
}

.login-v2-page .modal-loading-body-custom .loading-bar-segment {
  width: 10px;
  height: 26px;
  border-radius: 3px;
}

.login-v2-page .modal-body-custom .table {
  margin-bottom: 0;
}

.login-v2-page .modal-footer-custom {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
}

.login-v2-page .more-news-list .list-group-item-action {
  cursor: pointer;
}

.login-v2-page .form-table-list {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.login-v2-page .form-table-title,
.login-v2-page .form-table-row {
  display: grid;
  grid-template-columns: 120px 1fr;
}

.login-v2-page .form-table-title {
  background: #edf7ef;
  color: #2d5a36;
  font-weight: 700;
}

.login-v2-page .form-table-title > *,
.login-v2-page .form-table-row > * {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e4ece5;
}

.login-v2-page .form-table-file {
  color: #0d6b3c;
  cursor: pointer;
  text-decoration: underline;
}

.login-v2-page .ambush-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-v2-page .modal-security-alert {
  margin-bottom: 0;
}

.login-v2-page .modal-security-alert .small {
  color: rgba(255, 255, 255, 0.82) !important;
}

@media (max-width: 991px) {
  .login-v2-page .newsContentsCss {
    min-height: 8rem;
  }
  .login-v2-page .footer-links {
    justify-content: flex-start;
  }
  .login-v2-page .modal-box-container-loading {
    width: min(92vw, 420px);
  }
}
@media (max-width: 767px) {
  .login-v2-page .captcha-and-img {
    flex-wrap: wrap;
  }
  .login-v2-page .captcha-and-img img {
    width: 100%;
    max-width: 160px;
  }
  .login-v2-page .brand-footer-image {
    max-width: 160px;
  }
  .login-v2-page .modal-form-download .modal-box-container {
    width: min(92vw, 560px);
    max-height: 74vh;
  }
  .login-v2-page .modal-form-download .modal-body-custom {
    max-height: calc(74vh - 72px);
  }
  .login-v2-page .modal-box-container-loading {
    width: min(94vw, 420px);
    border-radius: 20px;
  }
  .login-v2-page .modal-loading-body-custom {
    padding: 20px 18px;
  }
  .login-v2-page .modal-loading-body-custom .loading-text {
    font-size: 20px;
    margin-bottom: 16px;
    text-align: center;
  }
  .login-v2-page .modal-loading-body-custom .loading-bar-container {
    width: 100%;
    padding: 12px 0 10px;
  }
  .login-v2-page .modal-loading-body-custom .loading-bar-segment {
    width: 8px;
    height: 20px;
    border-radius: 3px;
  }
  .login-v2-page .modal-form-download .form-table-title,
  .login-v2-page .modal-form-download .form-table-row {
    grid-template-columns: 64px 1fr;
  }
}
