/*PROGRESS*/

.progress {
  display: -ms-flexbox;
  display: flex;
  height: 1rem;
  overflow: hidden;
  font-size: 0.75rem;
  background-color: #e9ecef;
  border-radius: 0.25rem;
}

.progress-bar {
  background-color: #1ab394;
}

.progress-bar-success {
  background-color: #3dc7ab;
}

.progress-bar-info {
  background-color: #23c6c8;
}

.progress-bar-warning {
  background-color: #f8ac59;
}

.progress-bar-danger {
  background-color: #ed5565;
}


/*SWITCH*/
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #D4D4D8;
  transition: .4s;
}

.switch .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

[dir=ltr] .switch .slider:before {
  left: 4px;
}

[dir=rtl] .switch .slider:before {
  right: 4px;
}

.switch .slider:after {
  position: absolute;
  content: "";
  border: 2px solid #D4D4D8;
  width: 6px;
  height: 6px;
  right: 9px;
  bottom: 9px;
  border-radius: 50%;
  transition: .4s;
}

[dir=ltr] .switch .slider:after {
  left: 9px;
}

[dir=rtl] .switch .slider:after {
  right: 9px;
}

.switch input:checked + .slider {
  background-color: #22C55E;
}

[dir=rtl] .switch input:checked + .slider:before, [dir=rtl] .switch input:checked + .slider:after {
  transform: translateX(-20px);
}

[dir=ltr] .switch input:checked + .slider:before, [dir=ltr] .switch input:checked + .slider:after {
  transform: translateX(20px);
}

.switch input:checked + .slider:after {
  border-radius: 0;
  border: none;
  background-color: #22C55E;
  width: 2px;
  height: 10px;
}

[dir=ltr] .switch input:checked + .slider:after {
  left: 13px;
}

[dir=rtl] .switch input:checked + .slider:after {
  right: 13px;
}

.switch .slider.round {
  border-radius: 34px;
}

.switch .slider.round:before {
  border-radius: 50%;
}


/*SEGMENTED SWITCH*/
.segmented-switch {
  display: flex;
  width: fit-content;
  padding: 4px;
  gap: 2px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}

.segmented-switch > a {
  padding: 8px 14px;
  border-radius: 9px;
  color: #64748b;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.segmented-switch > a:hover {
  color: #334155;
}

.segmented-switch > a.active {
  background: #e2f1ed;
  color: #176b5b;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}


/*PASSWORD STRENGTH*/
.password-container input, .password-container .progress {
  margin-bottom: 0 !important;
}

.password_strength_info .label {
  display: none;
}

.password_strength_info, .password-container .errorlist {
  margin-top: 8px !important;
}


/*CAPTCHA FIELDS*/
.auth-form .auth-field.text_generator {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 !important;
}

.auth-form .auth-field.text_generator img.captcha {
  width: 130px;
  height: 48px;
  flex: 0 0 130px;
}

[dir=rtl] .auth-form .auth-field.text_generator img.captcha {
  margin-left: 8px;
}

[dir=ltr] .auth-form .auth-field.text_generator img.captcha {
  margin-right: 8px;
}

.auth-form .auth-field.text_generator input[type=text] {
  flex: 0 0 calc(100% - 183px);
}

.auth-form .auth-field.text_generator .captcha-refresh {
  font-size: 45px;
  width: 45px;
  height: 45px;
  cursor: pointer;
  -webkit-transition: 0.25s;
  -moz-transition: 0.25s;
  transition: 0.25s;
}

.auth-form .auth-field.text_generator .captcha-refresh:not(.disabled):hover {
  opacity: 0.8;
}

.auth-form .auth-field.text_generator .captcha-refresh.disabled {
  color: #ccc;
}

.auth-form .auth-field.text_generator .errorlist {
  flex-basis: 100%;
  margin-top: 8px;
}

#upload-preview {
  object-fit: cover;
}
