/*
  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("/sso/css/fonts-f671f7d94f585bb3c4429c6f14184df9.css");
@import url("/sso/css/loginForm-05dfb1b53aa02f4f537c178d5b0a8c95.css");
@import url("/sso/css/qrAuthen-eda3ad7e5264e8c9f0d31cf18fd2b5c9.css");
@import url("/sso/css/localeSelector-dc4e265e6ac884deea17f43bbe66bc8a.css");
@import url("/sso/css/otp-ba5294ffe6523f3588ffa8f77088f92a.css");
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600&display=swap");

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

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

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

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

.login-section {
  display: flex;
  box-shadow: none;
  border: none;
  flex-direction: column;
  padding: 0;
}

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

.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;
}

.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;
}

.captcha-select-card.captcha-error {
  border-color: #ea4335;
  box-shadow: 0 0 0 2px rgba(234, 67, 53, 0.12);
}

.captcha-select-card.captcha-error .captcha-checkbox-box {
  border-color: #ea4335;
}

.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;
  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;
}

.passkey-instruction-text {
  margin-bottom: 20px;
  margin-top: 48px;
  font-weight: 600;
  cursor: pointer;
}

#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;
}

.error-container,
.login-success-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}
.login-success-title {
  font-weight: 700;
  font-size: 28px;
  text-align: center;
  margin: 0;
}
.login-success-text {
  font-size: 18px;
  line-height: 32px;
  text-align: center;
  max-width: 745px;
  margin: 0;
}
.error-background,
.login-success-background {
  z-index: 9;
  width: 100vw;
  height: 100vh;
  position: absolute;
  object-fit: cover;
}
.success-card {
  margin: 0 32px;
  z-index: 10;
  background-color: white;
  border-radius: 32px;
  max-width: 842px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.success-footer {
  z-index: 10;
  position: absolute;
  bottom: 0;
}
.success-footer .viettel-footer {
  background-color: transparent;
}
.success-redirect-btn {
  height: 40px;
  width: 110px;
  gap: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ee0033;
  border: none;
  border-radius: 24px;
}
.success-redirect-btn:hover {
  background-color: #c80029;
}
.success-button-container {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.error-card {
  margin: 0 32px;
  z-index: 10;
  background-color: white;
  border-radius: 16px;
  border-bottom-left-radius: 1px;
  max-width: 600px;
  padding: 32px;
}

.error-title {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
}

.error-text,
.error-text p {
  color: #740013;
  margin: 0;
  font-size: 18px;
}
.captcha-input-container {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}
.captcha-image-container img {
  border-radius: 12px;
  width: 150px;
  height: 48px;
}

.slider-captcha-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  margin-top: 8px;
  max-width: 380px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  font-family: "Space Grotesk", "pf beau", "Segoe UI", sans-serif;
  backdrop-filter: blur(2px);
}
.slider-captcha-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.slider-captcha-title h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.slider-captcha-subtitle {
  display: block;
  color: #475569;
  font-size: 13px;
  margin-top: 2px;
}
.slider-captcha-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.slider-captcha-stage {
  position: relative;
  width: 100%;
  max-width: 320px;
  min-height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: #e5e7eb;
  margin: 0 auto;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}
.slider-captcha-bg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.slider-captcha-piece {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 12px;
  filter: drop-shadow(0 8px 22px rgba(15, 23, 42, 0.32));
  transition: transform 80ms ease;
}
.slider-captcha-slider {
  margin-top: 14px;
}
.slider-captcha-track {
  --slider-percent: 0;
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 46px;
  margin: 0 auto;
  border-radius: 12px;
  background: #e5e7eb;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
  user-select: none;
  touch-action: none;
}
.slider-captcha-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(var(--slider-percent) * 100%);
  border-radius: 12px;
  background: linear-gradient(90deg, #7dd3fc, #38bdf8);
  opacity: 0.35;
  pointer-events: none;
}
.slider-captcha-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #475569;
  pointer-events: none;
  letter-spacing: 0.1px;
}
.slider-captcha-handle {
  position: absolute;
  top: 0;
  left: calc(var(--slider-percent) * (100% - 46px));
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #e03;
  color: #ffffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.36);
  pointer-events: none;
  transition: transform 0.12s ease;
}
.slider-captcha-handle.active {
  transform: scale(0.98);
}
.slider-captcha-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  -webkit-appearance: none;
  opacity: 0;
  cursor: grab;
  touch-action: pan-x;
}
.slider-captcha-range:active {
  cursor: grabbing;
}
.slider-captcha-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 8px;
}
.slider-captcha-refresh {
  align-items: center;
  justify-content: center;
  display: flex;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  font-size: 16px;
  color: #0f172a;
}
.slider-captcha-refresh svg {
  width: 18px;
  height: 18px;
  display: block;
}
.slider-captcha-status {
  font-size: 13px;
  color: #0f172a;
  min-height: 20px;
}
.slider-captcha-status.ok {
  color: #059669;
}
.slider-captcha-status.error,
.slider-captcha-status.fail {
  color: #dc2626;
}
/* Slider captcha select styling */
.captcha-select-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #dadce0;
  border-radius: 6px;
  background: #f8f9fa;
  cursor: pointer;
  margin-bottom: 16px;
}

.captcha-checkbox {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.captcha-checkbox-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.captcha-checkbox-box svg {
  width: 16px;
}
.captcha-checkbox-box {
  width: 100%;
  height: 100%;
  border: 1px solid #c1c7cd;
  border-radius: 3px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 120ms ease, background-color 120ms ease;
  color: transparent;
  font-size: 14px;
  line-height: 1;
}

.captcha-checkbox-input:checked + .captcha-checkbox-box {
  background: #34a853;
  border-color: #2c9447;
  color: #ffffff;
}

.captcha-select-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.captcha-select-title {
  font-weight: 500;
  color: #1f2937;
}

.captcha-select-hint {
  color: #6b7280;
  font-size: 12px;
}

.captcha-select-badge {
  margin-left: auto;
  padding: 4px 8px;
  background: #e8f0fe;
  color: #1a73e8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.slider-captcha-modal {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(14, 165, 233, 0.18),
    rgba(15, 23, 42, 0.86)
  );
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 24px;
}

.slider-captcha-modal.show {
  display: flex;
}

.slider-captcha-dialog {
  background: transparent;
  border-radius: 16px;
  width: fit-content;
  box-shadow: none;
  padding: 0;
  position: relative;
}

.slider-captcha-close {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 10px;
  line-height: 1;
  border-radius: 10px;
  color: #0f172a;
}
.sso-captcha-logo {
  margin-left: auto;
  width: 60px;
  height: auto;
}
@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;
  }

  #passkeyInstruction {
    display: none !important;
  }

  .forgot-password-link {
    justify-content: center;
  }
}
@media (max-width: 767px) {
  .slider-captcha-dialog {
    padding: 20px 8px;
  }
}
