/*
  This CSS file is meant to be customized by deployments
  and is intentionally left empty. Any style that is added
  here should override the default styles in the application.
 */
@import url('./fonts.css');
@import url('./loginForm.css');
@import url('./qrAuthen.css');
@import url('./localeSelector.css');
@import url('./otp.css');
a {
  cursor: pointer;
}
.d-flex {
  display: flex;
}

.flex-row {
  flex-direction: row;
}

.flex-column {
  flex-direction: column;
}

.justify-content-center {
  justify-content: center;
}

.align-items-center {
  align-items: center;
}

.flex-grow-1 {
  flex-grow: 1;
}

.w-100 {
  width: 100%;
}

.mb-auto {
  margin-bottom: auto;
}

.mt-auto {
  margin-top: auto;
}

.text-center {
  text-align: center;
}

.flex-md-row {
  flex-direction: row;
}

.flex-column {
  flex-direction: column;
}

* {
  font-family: 'pf beau', 'pf beau otf', sans-serif;
}

body {
  background: white;
}

div#content {
  width: 100%;
  height: 100%;
  box-shadow: none;
}

#main-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  background-color: white;
  margin: 0;
  padding: 32px;
}

.main-content-wrapper {
  background-color: white;
  padding: 0;
}

.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: none;
  border: none;
  flex-direction: column;
  padding: 0;
}

.main-content-form {
  box-shadow: none;
  border: none;
  display: flex;
  gap: 32px;
  height: 100%;
}

.mdc-card {
  box-shadow: none;
  border: none;
}

/* Ensure image container has proper positioning */
.cas-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.position-absolute {
  position: absolute;
}

.position-relative {
  position: relative;
}

/* Viettel Footer Styling */
.viettel-footer {
  padding: 12px 16px;
  background-color: white;
  display: flex;
  align-items: center;
}

.footer-content {
  flex: 1;
}

.footer-text {
  color: #B5B4B4;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  display: block;
  text-align: center;
}

/* vOps Header */
.vops-header {
  margin-bottom: 40px;
}

.vops-logo {
  margin-bottom: 8px;
}

.vops-icon {
  background: #e31837;
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.vops-text {
  font-size: 28px;
  font-weight: 300;
  color: #333;
  letter-spacing: 1px;
}

.vops-subtitle {
  color: #666;
  font-size: 14px;
  margin: 0;
  font-weight: 400;
}

/* Login Options */
.login-options-container {
  justify-content: center;
  gap: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

/* Logo Images */
.vops-logo-image {
  width: 40px;
  height: 48px;
  object-fit: contain;
}


.vops-logo-inline {
  height: 20px;
  vertical-align: middle;
  margin: 0 2px;
}

.sso-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}

.sso-logo {
  height: 48px;
  width: auto;
}

.sso-title {
  font-size: 24px;
  font-weight: bold;
  color: #E03;
  margin-bottom: 5px;
}

.form-wrapper {
  position: relative;
}

.sso-subtitle {
  color: #6c757d;
  font-size: 14px;
  color: #6c757d;
  font-size: 14px;
  margin-top: 12px;
  justify-content: center;
  max-width: 388px;
}


.passkey-button {
  border: none;
  background-color: #e03;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 388px;
  border-radius: 12px;
  font-weight: 600;
  height: 48px;
  cursor: pointer;
}

.password-button {
  border: 1px solid #e03;
  background-color: white;
  color: #e03;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 388px;
  border-radius: 12px;
  font-weight: 600;
  height: 48px;
  cursor: pointer;
}

.alternative-login {
  margin-top: 16px;
  font-size: 14px;
}

.alternative-login span {
  color: #666;
  margin-right: 4px;
  font-size: 16px;
}

.alternative-login a {
  font-weight: 500;
}

/* Verification Interface Styles */
.verification-interface {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  background: white;
  border-radius: 12px;
  margin-bottom: auto;
}

.verification-title {
  font-size: 24px;
  font-weight: 700;
  color: #1E1E1E;
  margin-bottom: 24px;
  font-weight: 700;
}

.verification-subtitle {
  font-size: 16px;
  color: #1E1E1E;
  margin: 0;
  font-weight: 600;
}

.verification-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
  margin: 48px 0;
  max-width: 388px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 48px;
  border-radius: 12px;
  background: white;
  border: 1px solid #e03;
  padding: 12px 9px;
  font-size: 16px;
  margin-bottom: 32px;
}

#countdown,
#countdownMobile {
  color: #e03;
  font-weight: 600;
}

.alternative-login-link {
  color: #e03 !important;
  font-size: 16px;
  text-decoration: none;
}

/* Divider with text */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #666;
  margin: 20px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #E5E7EB;
}

.divider-text {
  margin: 0 10px;
  font-size: 16px;
  font-family: Roboto;
  color: #43474C;
}

/* Passkey link */
.passkey-link {
  color: #FF0000;
  text-decoration: none;
  font-size: 16px;
}

.passkey-link:hover {
  text-decoration: underline;
}

.my-6 {
  margin-top: 24px;
  margin-bottom: 24px;
}

.login-art {
  border-radius: 12px;
  width: 50%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expired-icon {
  font-size: 24px;
  margin-bottom: 10px;
  display: block;
}

.refresh-button {
  width: 48px;
  height: 48px;
  background-color: #ffffff;
  color: #EE0033;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#refresh {
  color: black;
  text-decoration: underline;
  cursor: pointer;
}

#loginErrorsPanel {
  color: #E03;
  text-align: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
}

.sso-header h2 {
  margin-top: 24px;
}

.login-art {
  position: relative;
  overflow: hidden;
}

.cas-logo {
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.9s;
  opacity: 1;
}


.cas-logo.fade-out {
  opacity: 0.7;
}

.forgot-password-link {
  display: flex;
  justify-content: end;
  width: 100%;
  margin-top: 16px;
  color: #e03;
}

.forgot-password-link a {
  color: #e03;
}

.reset-password-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.invalid-feedback {
  font-size: 14px;
  font-style: italic;
  color: #E03;
}

.send-otp-section {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
}

#getNewCodeBtn {
  padding: 0 10px;
  width: 30%;
  color: #FF0E19;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid #FF0E19;
  background-color: white;

}

#sendOtpBtn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.input-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 1200px) {
  .sso-header:not(.otp) {
    margin-bottom: 0;
  }

  .sso-header.otp {
    margin-bottom: 23px;
  }

  .sso-subtitle p {
    max-width: 285px;
    max-height: 22px;
  }

  .login-options-container {
    margin-top: 48px;
  }

  .password-button {
    color: #43474C;
  }

  .login-art {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .login-art::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.4;
  }

  .main-content-form {
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  #main-content {
    padding: 0;
  }

  .cas-logo {
    border-radius: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .viettel-footer {
    display: none;
  }

  .sso-logo {
    height: 32px;
  }

  .sso-header h2 {
    font-size: 20px;
  }

  .login-options-container {
    margin-bottom: 0;
  }

  .verification-interface {
    display: none !important;
  }

  .forgot-password-link {
    justify-content: center;
  }

}

/* Captcha Styles */
.captcha-container {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.captcha-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: bold;
}

.captcha-refresh {
  align-items: center;
  display: flex;
  margin-top: 8px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  border-radius: 3px;
  transition: background-color 0.2s;
}

.captcha-refresh:hover {
  background-color: #e9ecef;
}

#captchaProblem {
  color: #495057;
  font-family: monospace;
  font-size: 18px;
}


.captcha-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.captcha-input.is-invalid {
  border-color: #dc3545;
}

.captcha-image-container {
  border: 1px solid #ced4da;
  border-radius: 12px;
  background-color: white;
  padding: 2px;
}

#captchaCanvas {
  display: block;
  border-radius: 12px;
  height: 48px;
  margin-top: 8px;
}

.captcha-input-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.captcha-label {
  font-size: 14px;
  color: #495057;
  white-space: nowrap;
}

.captcha-input {
  width: 100px;
  height: 35px;
  padding: 5px 8px;
  border: 1px solid #ced4da;
  border-radius: 12px;
  font-size: 14px;
  text-align: center;
  background-color: white;
}

.captcha-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.captcha-input.is-invalid {
  border-color: #dc3545;
}

#captchaAnswer {
  width: 100%;
}

/* Password Rules Popup Styles */
.password-rules-popup {
  display: none;
  position: absolute;
  left: -21px;
  transform: translate(-100%, -50%);
  z-index: 1000;
  max-width: 567px;
  width: 567px;
  background: white;
  border-radius: 16px;
  justify-content: flex-start;
  flex-direction: column;
  box-shadow: 0px 4px 25px -2px rgba(31, 35, 41, 0.35);
  align-items: center;
}

.password-rules-popup.show {
  display: inline-flex;
}

.password-rules-triangle {
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(200%);
  z-index: 1001;
  width: 18px;
  height: 21px;
  filter: drop-shadow(2px 1px 2px rgba(0, 0, 0, 0.15));
}

.password-rules-header {
  align-self: stretch;
  padding-top: 16px;
  padding-bottom: 16px;
  padding-left: 24px;
  padding-right: 16px;
  position: relative;
  border-bottom: 1px #E8E9EA solid;
  justify-content: center;
  align-items: center;
  gap: 12px;
  display: inline-flex;
}

.password-rules-title-container {
  flex: 1 1 0;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 2px;
  display: inline-flex;
}

.password-rules-title {
  align-self: stretch;
  text-align: center;
  color: #EE0033;
  font-size: 18px;
  font-weight: 500;
  word-wrap: break-word;
}

.password-rules-close {
  width: 48px;
  height: 32px;
  right: 0;
  top: 11px;
  position: absolute;
  overflow: hidden;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}


.password-rules-body {
  align-self: stretch;
  padding-top: 16px;
  padding-bottom: 24px;
  padding-left: 24px;
  padding-right: 24px;
  background: white;
  overflow: hidden;
  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 16px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  display: flex;
}

.password-rules-item {
  align-self: stretch;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
  display: inline-flex;
}

.password-rules-bullet {
  width: 24px;
  height: 24px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.password-rules-text {
  flex: 1 1 0;
  justify-content: center;
  display: flex;
  flex-direction: column;
  color: black;
  font-size: 18px;
  font-weight: 400;
  word-wrap: break-word;
}

.password-rules-example {
  align-self: stretch;
  justify-content: center;
  display: flex;
  flex-direction: column;
  color: #44494D;
  font-size: 18px;
  font-weight: 500;
  word-wrap: break-word;
}

@media (max-width: 1200px) {
  .password-rules-popup {
    max-width: 350px;
    position: fixed;
    top: 16px;
    right: 16px;
    transform: none;
    left: unset;
  }

  .password-rules-triangle {
    display: none;
  }
}