:root {
  --progress-size: 50px;
  --progress-color: var(--primary-500);
  --progress-bgcolor: var(--surface-0);
  --stepper-circle-sm: clamp(1rem, 5vw, 1rem);
  --stepper-circle-md: clamp(1.5rem, 5vw, 1.5rem);
  --stepper-circle-lg: clamp(2rem, 5vw, 2rem);
  --stepper-circle-xl: clamp(2.5rem, 5vw, 2.5rem);
  --stepper-spacing: clamp(0.85rem, 2vw, 0.85rem);
}

/*
  Set Class FontAwesome
*/
*:hover > .hover\:fa-beat {
  -webkit-animation-name: fa-beat;
  animation-name: fa-beat;
  -webkit-animation-delay: var(--fa-animation-delay, 0s);
  animation-delay: var(--fa-animation-delay, 0s);
  -webkit-animation-direction: var(--fa-animation-direction, normal);
  animation-direction: var(--fa-animation-direction, normal);
  -webkit-animation-duration: var(--fa-animation-duration, 1s);
  animation-duration: var(--fa-animation-duration, 1s);
  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
  animation-timing-function: var(--fa-animation-timing, ease-in-out);
}

*:hover > .hover\:fa-bounce {
  -webkit-animation-name: fa-bounce;
  animation-name: fa-bounce;
  -webkit-animation-delay: var(--fa-animation-delay, 0s);
  animation-delay: var(--fa-animation-delay, 0s);
  -webkit-animation-direction: var(--fa-animation-direction, normal);
  animation-direction: var(--fa-animation-direction, normal);
  -webkit-animation-duration: var(--fa-animation-duration, 1s);
  animation-duration: var(--fa-animation-duration, 1s);
  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
}

*:hover > .hover\:fa-fade {
  -webkit-animation-name: fa-fade;
  animation-name: fa-fade;
  -webkit-animation-delay: var(--fa-animation-delay, 0s);
  animation-delay: var(--fa-animation-delay, 0s);
  -webkit-animation-direction: var(--fa-animation-direction, normal);
  animation-direction: var(--fa-animation-direction, normal);
  -webkit-animation-duration: var(--fa-animation-duration, 1s);
  animation-duration: var(--fa-animation-duration, 1s);
  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}

*:hover > .hover\:fa-beat-fade {
  -webkit-animation-name: fa-beat-fade;
  animation-name: fa-beat-fade;
  -webkit-animation-delay: var(--fa-animation-delay, 0s);
  animation-delay: var(--fa-animation-delay, 0s);
  -webkit-animation-direction: var(--fa-animation-direction, normal);
  animation-direction: var(--fa-animation-direction, normal);
  -webkit-animation-duration: var(--fa-animation-duration, 1s);
  animation-duration: var(--fa-animation-duration, 1s);
  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}

*:hover > .hover\:fa-flip {
  -webkit-animation-name: fa-flip;
  animation-name: fa-flip;
  -webkit-animation-delay: var(--fa-animation-delay, 0s);
  animation-delay: var(--fa-animation-delay, 0s);
  -webkit-animation-direction: var(--fa-animation-direction, normal);
  animation-direction: var(--fa-animation-direction, normal);
  -webkit-animation-duration: var(--fa-animation-duration, 1s);
  animation-duration: var(--fa-animation-duration, 1s);
  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
  animation-timing-function: var(--fa-animation-timing, ease-in-out);
}

*:hover > .hover\:fa-shake {
  -webkit-animation-name: fa-shake;
  animation-name: fa-shake;
  -webkit-animation-delay: var(--fa-animation-delay, 0s);
  animation-delay: var(--fa-animation-delay, 0s);
  -webkit-animation-direction: var(--fa-animation-direction, normal);
  animation-direction: var(--fa-animation-direction, normal);
  -webkit-animation-duration: var(--fa-animation-duration, 1s);
  animation-duration: var(--fa-animation-duration, 1s);
  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  -webkit-animation-timing-function: var(--fa-animation-timing, linear);
  animation-timing-function: var(--fa-animation-timing, linear);
}

*:hover > .hover\:fa-spin {
  -webkit-animation-name: fa-spin;
  animation-name: fa-spin;
  -webkit-animation-delay: var(--fa-animation-delay, 0s);
  animation-delay: var(--fa-animation-delay, 0s);
  -webkit-animation-direction: var(--fa-animation-direction, normal);
  animation-direction: var(--fa-animation-direction, normal);
  -webkit-animation-duration: var(--fa-animation-duration, 2s);
  animation-duration: var(--fa-animation-duration, 2s);
  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  -webkit-animation-timing-function: var(--fa-animation-timing, linear);
  animation-timing-function: var(--fa-animation-timing, linear);
}

*:hover > .hover\:fa-spin-reverse {
  --fa-animation-direction: reverse;
}

*:hover > .hover\:fa-pulse,
*:hover > .hover\:fa-spin-pulse {
  -webkit-animation-name: fa-spin;
  animation-name: fa-spin;
  -webkit-animation-direction: var(--fa-animation-direction, normal);
  animation-direction: var(--fa-animation-direction, normal);
  -webkit-animation-duration: var(--fa-animation-duration, 1s);
  animation-duration: var(--fa-animation-duration, 1s);
  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
  animation-timing-function: var(--fa-animation-timing, steps(8));
}

/*
  Set Class Theme ให้รองรับ Font Sarabun
*/
.p-inputtext {
  padding: 0.5rem 0.75rem;
  line-height: 1.75rem;
  text-indent: 1px;
}
textarea.p-inputtext {
  line-height: 1.35rem;
  text-indent: 0;
}

/*
  Logo
*/
.logo-image {
  width: 3.25rem;
  margin-right: 0.75rem;
}
.logo-label {
  color: var(--logo-text-color);
  font-size: 2.25rem;
  font-weight: 700;
}

/*
	Flag Icon
*/
.flag-icon {
  background-size: contain;
  background-position: 50%;
  background-repeat: no-repeat;
  position: relative;
  display: inline-block;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  box-shadow: 0 1px 2px 1px var(--surface-200);
}
.flag-icon:before {
  content: "\00a0";
}
.flag-icon-en {
  background-image: url("../images/flag/en.png");
}
.flag-icon-th {
  background-image: url("../images/flag/th.png");
}
.flag-icon-display-h {
  height: 20px;
}
.flag-icon-display-w {
  width: 20px;
}

/*
  QR Code
*/
.qrcode-mask {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  transform: translate(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border-radius: 1rem;
  background-color: rgba(0, 0, 0, 0.8);
  color: #ffffff;
}
.qrcode-mask:hover {
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.qrcode-mask i {
  font-size: 1.5rem;
  margin-right: 0.75rem;
}
.qrcode-mask span {
  font-size: 1.5rem;
  font-weight: 500;
}
.qrcode-mask.qrcode-none {
  position: relative;
  background-color: var(--qrcode-mark);
  color: var(--surface-700);
}

/*
  Progress Circle
*/
.progress-circle {
  width: var(--progress-size);
  height: var(--progress-size);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--progress-bgcolor) 70%, transparent 80% 100%),
    conic-gradient(var(--progress-color) var(--progress), var(--gray-200) 0%);
}

.progress-circle::after {
  content: attr(data-label);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  border-radius: 50%;
  font-size: 90%;
}

/*
  Stepper
*/
.c-stepper {
  margin-left: -3rem;
}
.c-stepper-item {
  position: relative;
  display: flex;
  gap: 1rem;
  padding-bottom: 2rem;
}
.c-stepper-item::before {
  display: flex;
  align-items: center;
  justify-content: center;
  content: "";
  flex: 0 0 var(--stepper-circle-md);
  height: var(--stepper-circle-md);
  border-radius: 50%;
  font-size: 1rem;
  border: 2px solid lightgrey;
  /* rotate: 10deg; */
}
.c-stepper-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--stepper-circle-md) + var(--stepper-spacing));
  bottom: calc(var(--stepper-spacing) / 1.75);
  transform: translateX(calc(var(--stepper-circle-md) / 1.75));
  width: 2px;
  background-color: lightgrey;
}
.c-stepper-item .c-stepper-content {
  margin: auto 0;
  font-weight: 500;
}

.c-stepper-sm .c-stepper-item::before {
  flex: 0 0 var(--stepper-circle-sm);
  height: var(--stepper-circle-sm);
  font-size: 0.75rem;
}
.c-stepper-sm .c-stepper-item:not(:last-child)::after {
  top: calc(var(--stepper-circle-sm) + var(--stepper-spacing));
  transform: translateX(calc(var(--stepper-circle-sm) / 1.75));
}
.c-stepper-lg .c-stepper-item::before {
  flex: 0 0 var(--stepper-circle-lg);
  height: var(--stepper-circle-lg);
  font-size: 1.5rem;
  border-width: 3px;
}
.c-stepper-lg .c-stepper-item:not(:last-child)::after {
  top: calc(var(--stepper-circle-lg) + var(--stepper-spacing));
  transform: translateX(calc(var(--stepper-circle-lg) / 1.75));
  width: 3px;
}
.c-stepper-xl .c-stepper-item::before {
  flex: 0 0 var(--stepper-circle-xl);
  height: var(--stepper-circle-xl);
  font-size: 1.8rem;
  border-width: 3px;
}
.c-stepper-xl .c-stepper-item:not(:last-child)::after {
  top: calc(var(--stepper-circle-xl) + var(--stepper-spacing));
  transform: translateX(calc(var(--stepper-circle-xl) / 1.75));
  width: 3px;
}

.c-stepper-item.progress {
  color: var(--primary-color);
}
.c-stepper-item.progress::before {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.c-stepper-item.active::before {
  /* content: "\2714"; */
  font-family: FontAwesome;
  content: "\f00c";
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}
.c-stepper-item.active::after {
  background-color: var(--primary-color) !important;
}
.c-stepper-success .c-stepper-item.progress {
  color: var(--green-500);
}
.c-stepper-success .c-stepper-item.progress::before {
  border-color: var(--green-500);
}
.c-stepper-success .c-stepper-item.active::before {
  background-color: var(--green-500);
  border-color: var(--green-500);
  color: #ffffff;
}
.c-stepper-success .c-stepper-item.active::after {
  background-color: var(--green-500) !important;
}

/*
  Switch
*/
.switch-button {
  display: inline-block;
  padding: 0.5rem 0.6125rem;
  border-radius: 30px;
  background-color: var(--password-switch-button);
}
.switch-button > button {
  padding: 0.5rem 1rem;
}

/*
  Scrollbar
*/
.scrollbar-dialog::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.scrollbar-dialog::-webkit-scrollbar-track {
  background: none;
}
.scrollbar-dialog::-webkit-scrollbar-thumb {
  background: var(--surface-100);
  border-radius: var(--border-radius);
}
.scrollbar-dialog::-webkit-scrollbar-thumb:hover {
  background: var(--surface-300);
}

/*
  Image
*/
.image-login-requirement {
  background-image: url("../images/auth/login-requirement.svg");
  background-repeat: no-repeat;
  background-position: right calc(100% + 1rem);
  background-size: 25%;
}
.image-forgot-password {
  background-image: url("../images/auth/forgot-password.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 90%;
}
.image-reset-password {
  background-image: url("../images/auth/reset-password.svg");
  background-repeat: no-repeat;
  background-position: calc(100% - 2rem) calc(100% - 7rem);
  background-size: 25%;
}

/*
  Screen
*/
@media (max-width: 991px) {
  .image-login-requirement {
    background-size: 20%;
  }
  .image-reset-password {
    background-size: 40%;
  }
}

@media (max-width: 575px) {
  .image-login-requirement {
    background-size: 30%;
  }
  .image-reset-password {
    background-position: center center;
    background-size: 70%;
  }
}
