/* @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(90deg, #faf9f6, #F8F8FF);
  font-family: 'IRANSansWeb';
  position: relative;
}
.forget-link .separator {
  margin: 0 10px;
  color: #acacac;
  font-size: 14px;
}
.back-home-link {
  font-size: 14px;
  color: #008375;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  padding: 5px 0;
}
.back-home-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 0;
  width: 0;
  height: 1.5px;
  background-color: #008375;
  transition: width 0.3s ease;
}
.back-home-link:hover {
  color: #006e64;
}
.back-home-link:hover::after {
  width: 100%;
}
.container {position: relative;width: 850px;height: 550px;background: #fff;border-radius: 30px;box-shadow: 0 0 30px rgba(0, 0, 0, .2);margin: 20px;overflow: hidden;}
.container-1 {position: relative;width: 650px;height: 400px;background: #fff;border-radius: 30px;box-shadow: 0 0 30px rgba(0, 0, 0, .2);margin: 20px;overflow: hidden;}
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #008375;
  --bs-btn-border-color: #008375;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #006e64;
  --bs-btn-hover-border-color: #006359;
  --bs-btn-focus-shadow-rgb: 0, 131, 117;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #006359;
  --bs-btn-active-border-color: #00594f;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #008375;
  --bs-btn-disabled-border-color: #008375;
}
.showR {display: inline !important;}
.hideR {display: none !important;}
.form-box {position: absolute;right: 10px;width: 50%;height: 100%;background: #ffff;display: flex;align-items: center;color: #1a1a1a;text-align: center;padding: 40px;z-index: 1;transition: .6s ease-in-out 1.2s, visibility 0s 1s;}
.input-field {
  max-width: 400px;
  width: 100%;
  background-color: #f0f0f0;
  margin: 0.50rem 0;
  height: 48px;
  padding: 0 8px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 15% 85%;
  align-items: center;
  position: relative;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.input-field:focus-within {
  background-color: #f0f0f0 !important;
  border-color: #008375;
  border-width: 2px;
}
.input-field .form-control,
.input-field input.form-control {
  background: transparent !important;
  background-color: transparent !important;
  height: 100%;
}
.input-field .form-control:focus,
.input-field .form-control:not(:disabled):not([readonly]):focus,
.input-field input.form-control:focus,
.input-field input.form-control:not(:disabled):not([readonly]):focus {
  background: transparent !important;
  background-color: transparent !important;
}
.input-group>.form-control, .input-group>.form-floating, .input-group>.form-select {
  width: 100%;
}
.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
  margin-left: calc(var(--bs-border-width)* -1);
  border-radius: 10px !important;
  height: 46px;
  transition: all 0.3s ease;
}
.input-field input.form-control:focus {
  background: transparent !important;
  background-color: transparent !important;
  outline: none !important;
  outline-color: transparent !important;
  outline-width: 0 !important;
  box-shadow: none !important;
  border: none !important;
}
.input-field .form-control:focus {
  background: transparent !important;
  background-color: transparent !important;
  outline: none !important;
  outline-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
.input-field i {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #acacac;
  transition: 0.5s;
  font-size: 1.1rem;
}
.input-field i {
  /* small upward nudge so icons sit visually centered with the text */
  transform: translateY(-3px);
}
.input-field:focus-within i {
  color: #008375;
}
.input-field input {
  background: transparent !important;
  background-color: transparent !important;
  outline: none !important;
  border: none;
  height: 100%;
  padding: 0 8px;
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}
.input-field input:focus {
  color: #333;
  background: transparent !important;
  background-color: transparent !important;
  outline: none !important;
  outline-color: transparent !important;
  box-shadow: none !important;
}
.input-field input:focus-visible {
  outline: none !important;
  outline-color: transparent !important;
}

/* Login/Register title spacing */
.form-box .auth-form-heading,
.form-box form > h2.text-color-1 {
  margin: 0 0 1.4rem;
  padding-bottom: 0;
  line-height: 1.45;
}

/* Kill browser autocomplete paint on login/register fields */
.form-box .input-field input:-webkit-autofill,
.form-box .input-field input:-webkit-autofill:hover,
.form-box .input-field input:-webkit-autofill:focus,
.form-box .input-field input:-webkit-autofill:active,
.form-box input.form-control:-webkit-autofill,
.form-box input.form-control:-webkit-autofill:hover,
.form-box input.form-control:-webkit-autofill:focus,
.form-box input.form-control:-webkit-autofill:active {
  -webkit-text-fill-color: #333 !important;
  caret-color: #333;
  transition: background-color 99999s ease-out 0s;
  box-shadow: 0 0 0 1000px #f0f0f0 inset !important;
  -webkit-box-shadow: 0 0 0 1000px #f0f0f0 inset !important;
  background-color: transparent !important;
  background-image: none !important;
  filter: none !important;
}
.form-box .input-field:focus-within input:-webkit-autofill,
.form-box .input-field:focus-within input:-webkit-autofill:focus {
  box-shadow: 0 0 0 1000px #f0f0f0 inset !important;
  -webkit-box-shadow: 0 0 0 1000px #f0f0f0 inset !important;
}
.input-group .toggle-password {
  position: absolute;
  float: left;
  left: 25px;
  top: 2px;
  cursor: pointer;
  z-index: 1000;
}
.invalid-feedback {display: none;width: 300px;padding-bottom: 0.60rem;padding-right: 1rem;font-size: .800em;text-align: right;color: var(--bs-form-invalid-color);}
.container.active .form-box {right: 50%;}
.form-box.register {visibility: hidden;}
.container.active .form-box.register {visibility: visible;}
form {width: 100%;}
.container h2 {font-size: 32px;margin: -2px 0;font-family: 'DanaBold';}
.container h3 {font-size: 28px;padding-bottom: 2rem;font-family: 'DanaBold';}
.input-box {position: relative;margin: 30px 0;}
.input-box input {width: 100%;padding: 13px 50px 13px 20px;background: #f6f6f6;border-radius: 8px;border: none;outline: none;font-size: 16px;color: #333;font-weight: 500;}
.input-box input::placeholder {color: #888;font-weight: 400;}
.input-box i {position: absolute;right: 20px;top: 50%;transform: translateY(-50%);font-size: 20px;color: #888;}
.forget-link {
  margin: 10px 0 15px;
  text-align: center;
}
.forget-link a {
  font-size: 14px;
  color: #008375;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding: 5px 0;
}
.forget-link a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 0;
  width: 0;
  height: 1.5px;
  background-color: #008375;
  transition: width 0.3s ease;
}
.forget-link a:hover {
  color: #006e64;
}
.forget-link a:hover::after {
  width: 100%;
}
.btn {width: 100%;height: 48px;background: #008375;border-radius: 8px;box-shadow: 0 0 10px rgba(0, 0, 0, .1);border: none;outline: none;cursor: pointer;font-size: 15px;color: #fff;font-weight: 600;}
.container p {font-size: 14.5px;margin: 15px 0;}
.social-icons {display: flex;justify-content: center;}
.social-icons a {display: inline-flex;padding: 10px;border: 2px solid #ccc;border-radius: 50%;font-size: 18px;color: #333;text-decoration: none;margin: 0 8px;transition: .5s;}
.social-icons a:hover {color: #ffff;background: #008375;border: 2px solid #fff;}
.toggle-box {position: absolute;width: 100%;height: 100%;right: 0px}
.toggle-box::before {content: '';position: absolute;left: -250%;width: 300%;height: 100%;background: #008375;border-radius: 150px;z-index: 2;transition: 1.8s ease-in-out;}
.container.active .toggle-box::before {left: 50%;}
.toggle-panel {position: absolute;width: 50%;height: 100%;color: #fff;display: flex;flex-direction: column;justify-content: center;align-items: center;z-index: 2;transition: .6s ease-in-out;}
.toggle-panel.toggle-left {left: 0;transition-delay: 1.2s;}
.container.active .toggle-panel.toggle-left {left: -50%;transition-delay: .6s;}
.toggle-panel.toggle-right {right: -50%;transition-delay: .6s;}
.container.active .toggle-panel.toggle-right {right: 0;transition-delay: 1.2s;}
.toggle-panel p {
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 15px;
}
.toggle-panel .btn {
  width: 180px;
  height: 46px;
  background: transparent;
  border: 2px solid #fff;
  box-shadow: none;
  transition: .5s;
  font-size: 14px;
}
.toggle-panel .btn:hover {
  background: #ffff;
  color: #008375;
  border: none;
  outline: none;
}
.lottie-wrapper {
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.lottie-wrapper .custom-canvas {
  width: 220px;
  height: 220px;
}
@media screen and (min-width: 1400px) {
  .lottie-wrapper .custom-canvas {
    width: 260px;
    height: 260px;
  }
}
@media screen and (max-width: 992px) {
  .lottie-wrapper .custom-canvas {
    width: 180px;
    height: 180px;
  }
}
@media screen and (max-width: 650px) {
  .lottie-wrapper .custom-canvas {
    width: 100px;
    height: 100px;
  }
  .lottie-wrapper {
    margin-bottom: 10px;
  }
  .toggle-panel h2 {
    margin-bottom: 6px;
    font-size: 22px;
  }
  .toggle-panel p {
    margin-bottom: 10px;
    font-size: 13px;
    padding: 0 10px;
  }
  .toggle-panel .btn {
    width: 150px;
    height: 40px;
    font-size: 13px;
    margin-top: 5px;
  }
}
@media screen and (max-width: 400px) {
  .lottie-wrapper .custom-canvas {
    width: 80px;
    height: 80px;
  }
  .lottie-wrapper {
    margin-bottom: 8px;
  }
  .toggle-panel h2 {
    margin-bottom: 5px;
    font-size: 20px;
  }
  .toggle-panel p {
    margin-bottom: 8px;
    font-size: 12px;
    padding: 0 8px;
  }
  .toggle-panel .btn {
    width: 140px;
    height: 38px;
    font-size: 12px;
    margin-top: 5px;
  }
}
.toggle-panel h2 {
  margin-bottom: 12px;
}
@media screen and (max-width: 650px) {
  .container {height: calc(100vh - 40px);}
  .form-box {bottom: 0;width: 100%;height: 70%; right: 0; left: 0;}
  .container.active .form-box {right: 0; left: 0; bottom: 30%;}
  .toggle-box::before {left: 0;top: -270%;width: 100%;height: 300%;border-radius: 20vw;}
  .container.active .toggle-box::before {left: 0;top: 70%;}
  .toggle-panel {width: 100%;height: 30%;}
  .toggle-panel.toggle-left {top: 0;}
  .container.active .toggle-panel.toggle-panel.toggle-left {left: 0;top: -30%;}
  .toggle-panel.toggle-right {right: 0;bottom: -30%;}
  .container.active .toggle-panel.toggle-right {bottom: 0;}
}

@media screen and (max-width: 400px) {
  .form-box {padding: 20px;}
  .toggle-panel h2 {font-size: 26px;}
}

.fv-plugins-bootstrap5 .fv-plugins-icon {align-items: center;display: flex;justify-content: center;height: 38px;width: 38px;}
.fv-plugins-icon {position: relative;float: left;left: -170px;text-align: left;top: -50px ;font-size: 1.1rem;}
.style-box-otp {border: 0px;border-radius: 15px;}
.otp-form .otp-field {display: inline-block;width: 3.5rem;height: 4rem;font-size: 1.4rem;line-height: 4rem;text-align: center;border: none;border-bottom: 2px solid #91eade;outline: none;margin: 0 0.2rem;}
.otp-form .otp-name {display: inline-block;width: 8rem;height: 4rem;font-size: 1.4rem;line-height: 3.9rem;text-align: center;border: none;border-bottom: 2px solid #91eade;outline: none;}
.otp-form .otp-field:focus {border-bottom-color: #91eade;}

/* Responsive OTP Fields */
@media (max-width: 768px) {
    .otp-form .otp-field {
        width: 2.8rem;
        height: 3.5rem;
        font-size: 1.2rem;
        line-height: 3.5rem;
        margin: 0 0.1rem;
    }
    
    .otp-form {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.2rem;
    }
    
    .style-box-otp {
        margin: 1rem;
        padding: 1.5rem !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
}

@media (max-width: 480px) {
    .otp-form .otp-field {
        width: 2.5rem;
        height: 3rem;
        font-size: 1rem;
        line-height: 3rem;
        margin: 0 0.05rem;
    }
    
    .container-lg {
        margin: 2rem auto !important;
        padding: 0 1rem;
    }
}

/* SweetAlert helpers */
.swal-rtl {
  direction: rtl;
  text-align: right;
}
@keyframes dots {
  0%, 20% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
.swal-dots {
  display: inline-block;
  width: 20px;
  text-align: right;
  direction: rtl;
}
.swal-dots::after {
  content: '...';
  animation: dots 1.5s infinite;
}

/* Responsive overrides — keep desktop look, fix mobile overflow */
html {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  overflow-x: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}
.container,
.form-box,
form,
.input-field,
.input-group {
  box-sizing: border-box;
  max-width: 100%;
}
.input-field {
  width: 100%;
}
.input-field input.form-control,
.input-field input {
  min-width: 0;
  max-width: 100%;
}
.btn.submit {
  min-height: 48px;
  touch-action: manipulation;
}
.toggle-panel .btn {
  min-height: 44px;
  touch-action: manipulation;
}
.invalid-feedback {
  max-width: 100%;
  width: auto;
  box-sizing: border-box;
}
#mobile-availability {
  word-break: break-word;
}
#response {
  text-align: right;
  font-size: 0.875rem;
}
#response .alert {
  margin-top: 0.75rem;
  margin-bottom: 0;
  padding: 0.5rem 0.75rem;
}

@media screen and (max-width: 900px) {
  .container {
    width: calc(100% - 24px);
    max-width: 850px;
  }
}

@media screen and (max-width: 768px) {
  body {
    align-items: flex-start;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 8px 0;
  }
  .container {
    width: calc(100% - 16px);
    max-width: none;
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    min-height: 560px;
    margin: 8px;
    border-radius: 24px;
  }
  .form-box {
    bottom: 0;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100%;
    height: 70%;
    padding: 20px 20px;
    margin: 0 !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    --bs-gutter-x: 0;
  }
  .form-box.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .container.active .form-box {
    right: 0 !important;
    left: 0 !important;
    bottom: 30%;
  }
  .form-box > [class*="col-"],
  .form-box .col-md-12 {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
  }
  .form-box form {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .form-box .form-field,
  .form-box .input-field {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .form-box .btn.submit {
    width: 100%;
  }
  .toggle-box::before {
    left: 0;
    top: -270%;
    width: 100%;
    height: 300%;
    border-radius: 20vw;
  }
  .container.active .toggle-box::before {
    left: 0;
    top: 70%;
  }
  .toggle-panel {
    width: 100%;
    height: 30%;
    padding: 0 12px;
  }
  .toggle-panel.toggle-left {
    top: 0;
    left: 0;
  }
  .container.active .toggle-panel.toggle-left {
    left: 0;
    top: -30%;
  }
  .toggle-panel.toggle-right {
    right: 0;
    bottom: -30%;
  }
  .container.active .toggle-panel.toggle-right {
    bottom: 0;
  }
  .lottie-wrapper .custom-canvas {
    width: 96px;
    height: 96px;
  }
  .lottie-wrapper {
    margin-bottom: 8px;
  }
  .toggle-panel h2 {
    margin-bottom: 6px;
    font-size: 22px;
  }
  .toggle-panel p {
    margin-bottom: 10px;
    font-size: 13px;
    padding: 0 8px;
  }
  .toggle-panel .btn {
    width: min(160px, 70vw);
    height: 42px;
    min-height: 42px;
    font-size: 13px;
    margin-top: 4px;
  }
  .input-field {
    height: 46px;
    margin: 0.4rem 0;
  }
  .input-field i,
  .input-field .toggle-password {
    font-size: 1.35rem !important;
  }
  .input-group .toggle-password {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
  }
  .fv-plugins-icon {
    float: none;
    left: auto;
    top: auto;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    width: 24px;
    font-size: 1rem;
    z-index: 2;
  }
  .forget-link {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 6px;
    padding-top: 0.75rem !important;
  }
  .forget-link a,
  .back-home-link {
    font-size: 13px;
  }
  .btn.submit {
    font-size: 14px;
    height: auto;
    min-height: 48px;
    padding: 0.65rem 0.75rem;
    white-space: normal;
    line-height: 1.3;
  }
}

@media screen and (max-width: 414px) {
  .container {
    margin: 6px;
    width: calc(100% - 12px);
    height: calc(100dvh - 12px);
    min-height: 520px;
    border-radius: 20px;
  }
  .form-box {
    padding: 16px 18px !important;
  }
  .container h2.fs-5 {
    font-size: 1.05rem !important;
  }
  .toggle-panel h2 {
    font-size: 20px;
  }
  .toggle-panel p {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .lottie-wrapper .custom-canvas {
    width: 80px;
    height: 80px;
  }
  .toggle-panel .btn {
    width: min(150px, 72vw);
    height: 40px;
    min-height: 40px;
    font-size: 12px;
  }
}

@media screen and (max-width: 375px) {
  .form-box {
    padding: 14px 16px !important;
  }
  .input-field {
    height: 44px;
    padding: 0 6px;
  }
  .btn.submit {
    font-size: 13px;
    min-height: 46px;
  }
  .forget-link .separator {
    margin: 0 6px;
  }
}

@media screen and (max-width: 320px) {
  .container {
    margin: 4px;
    width: calc(100% - 8px);
    min-height: 480px;
    border-radius: 16px;
  }
  .form-box {
    padding: 12px 14px !important;
  }
  .container h2.fs-5 {
    font-size: 0.95rem !important;
  }
  .toggle-panel h2 {
    font-size: 18px;
  }
  .toggle-panel p {
    font-size: 11px;
    padding: 0 4px;
  }
  .lottie-wrapper .custom-canvas {
    width: 64px;
    height: 64px;
  }
  .toggle-panel .btn {
    width: min(130px, 78vw);
    height: 36px;
    min-height: 36px;
    font-size: 11px;
  }
  .btn.submit {
    font-size: 12px;
    min-height: 44px;
  }
  .input-field i,
  .input-field .toggle-password {
    font-size: 1.15rem !important;
  }
}

@media screen and (max-width: 768px) and (max-height: 700px) {
  .container {
    min-height: 0;
    height: calc(100dvh - 12px);
  }
  .lottie-wrapper .custom-canvas {
    width: 64px;
    height: 64px;
  }
  .lottie-wrapper {
    margin-bottom: 4px;
  }
  .toggle-panel h2 {
    font-size: 18px;
    margin-bottom: 4px;
  }
  .toggle-panel p {
    display: none;
  }
  .form-box {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* JustValidate field errors — reserved space under each input */
.form-field {
  width: 100%;
  margin: 0 0 0.85rem;
  text-align: right;
}
.form-field:last-of-type {
  margin-bottom: 0.5rem;
}
.form-field .input-field {
  margin: 0;
}
.form-box.login .form-field.mt-3 {
  margin-top: 0.85rem !important;
}
.field-error {
  min-height: 1.25rem;
  padding: 0.3rem 0.5rem 0;
  text-align: right;
  box-sizing: border-box;
}
.field-hint {
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: right;
  padding: 0.15rem 0.5rem 0;
  margin: 0;
  min-height: 0;
}
.field-hint:empty {
  display: none;
}
.just-validate-error-label,
.field-error .just-validate-error-label {
  display: block;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #c0392b !important;
  margin: 0;
  padding: 0;
  font-weight: 500;
  animation: compiErrorIn 0.18s ease;
}
@keyframes compiErrorIn {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}
.input-field.has-error,
.input-field:has(input.is-invalid) {
  border-color: #c0392b;
  background-color: #fff7f7;
}
.input-field.has-success,
.input-field:has(input.is-valid):not(:has(input.is-invalid)) {
  border-color: #008375;
}
.input-field input.is-invalid,
.input-field input.is-valid {
  background: transparent !important;
}
#response .alert {
  font-size: 0.8rem;
  text-align: right;
}

@media screen and (max-width: 768px) {
  .form-box.login,
  .form-box.register {
    justify-content: flex-start;
    padding-top: 18px;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .form-box .auth-form-heading,
  .form-box form > h2.text-color-1 {
    margin-bottom: 1.25rem;
  }
  .form-field {
    margin: 0 0 0.7rem;
  }
  .field-error {
    min-height: 1.15rem;
    padding: 0.28rem 0.4rem 0;
  }
  .just-validate-error-label,
  .field-error .just-validate-error-label {
    font-size: 0.7rem;
  }
  .form-box.register .btn.submit,
  .form-box.login .btn.submit {
    margin-top: 0.35rem;
  }
  .form-box.register p.mt-3 {
    margin-top: 0.65rem !important;
    font-size: 12px !important;
    line-height: 1.55;
  }
  #mobile-availability {
    margin-top: 0 !important;
    padding-right: 0.4rem;
  }
}

@media screen and (max-width: 414px) {
  .form-field {
    margin: 0 0 0.65rem;
  }
  .field-error {
    min-height: 1.1rem;
    padding-top: 0.25rem;
  }
}

@media screen and (max-width: 375px) {
  .form-box.login,
  .form-box.register {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .form-field {
    margin: 0 0 0.55rem;
  }
}

/* OTP confirmation — modern micro-interaction UX */
.otp-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(0, 131, 117, 0.12), transparent 60%),
    linear-gradient(160deg, #faf9f6 0%, #eef8f6 48%, #f7f8fc 100%);
  font-family: 'IRANSansWeb';
  overflow-x: hidden;
  padding: 16px;
  box-sizing: border-box;
}
.otp-shell {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.otp-card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 131, 117, 0.08);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 80, 70, 0.1);
  padding: 2.1rem 1.4rem 1.7rem;
  text-align: center;
  direction: rtl;
  overflow: hidden;
}
.otp-aura {
  position: absolute;
  inset: auto 20% -40% 20%;
  height: 180px;
  background: radial-gradient(circle, rgba(0, 131, 117, 0.14), transparent 70%);
  pointer-events: none;
}
.otp-brand {
  position: relative;
  font-family: 'DanaBold';
  color: #008375;
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
}
.otp-title {
  position: relative;
  font-family: 'DanaBold';
  font-size: 1.3rem;
  color: #1a1a1a;
  margin: 0 0 0.35rem;
}
.otp-subtitle {
  position: relative;
  color: #6b7280;
  font-size: 0.88rem;
  margin: 0 0 1.55rem;
  line-height: 1.55;
}
.otp-stage {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
}
.otp-digits {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.4rem, 2.4vw, 0.7rem);
  width: 100%;
  max-width: 100%;
  direction: ltr;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
}
.otp-cell {
  --otp-size: clamp(2.6rem, 12.5vw, 3.2rem);
  position: relative;
  flex: 0 0 auto;
  width: var(--otp-size);
  height: var(--otp-size);
  aspect-ratio: 1 / 1;
  border-radius: 14px;
}
@property --otp-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.otp-cell::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  padding: 2px;
  background: conic-gradient(
    from var(--otp-angle),
    #008375 0deg,
    rgba(0, 131, 117, 0.08) 90deg,
    rgba(0, 131, 117, 0.55) 180deg,
    rgba(0, 131, 117, 0.08) 270deg,
    #008375 360deg
  );
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.2s ease;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.otp-cell:focus-within::before {
  opacity: 1;
  animation: otpBorderSpin 1.35s linear infinite;
}
.otp-digits--expired .otp-cell:focus-within::before,
.otp-digits--error .otp-cell:focus-within::before,
.is-success .otp-cell:focus-within::before {
  opacity: 0;
  animation: none;
}
@keyframes otpBorderSpin {
  to { --otp-angle: 360deg; }
}

.otp-page .otp-field,
.otp-digits .otp-field {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border: 2.5px solid rgba(0, 131, 117, 0.32);
  border-radius: 14px;
  background: #f7fbfa;
  box-shadow: 0 6px 16px rgba(0, 131, 117, 0.06);
  text-align: center;
  font-size: clamp(1.15rem, 4.5vw, 1.4rem);
  font-weight: 700;
  color: #008375;
  outline: none !important;
  outline-offset: 0;
  box-shadow: 0 6px 16px rgba(0, 131, 117, 0.06);
  margin: 0;
  padding: 0;
  line-height: 1;
  caret-color: #008375;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}
.otp-digits .otp-field:focus,
.otp-digits .otp-field:focus-visible {
  outline: none !important;
  border-color: #008375;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 131, 117, 0.1);
}
.otp-digits .otp-field.is-filled {
  border-color: rgba(0, 131, 117, 0.55);
  background: #fff;
}
.otp-digits .otp-field.is-pop {
  animation: otpDigitPop 0.22s ease;
}
@keyframes otpDigitPop {
  0% { transform: scale(0.82); opacity: 0.35; }
  65% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.otp-digits .otp-field.is-error {
  border-color: #e74c3c;
  background: #fff7f7;
  color: #c0392b;
  box-shadow: 0 0 0 1px rgba(231, 76, 60, 0.12);
}
.otp-digits .otp-field.is-expired,
.otp-digits--expired .otp-field,
.otp-digits .otp-field:disabled.is-expired {
  border-color: #c9ced6;
  background: #eef0f3;
  color: #9aa1ab;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}
.otp-digits .otp-field:disabled {
  cursor: default;
}
.otp-digits--shake {
  animation: otpShake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes otpShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
.otp-digits--busy .otp-field {
  opacity: 0.72;
}

.otp-success-box {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(160deg, #ffffff 0%, #f3fcf5 100%);
  border: 2.5px solid rgba(8, 212, 25, 0.4);
  box-shadow: 0 12px 28px rgba(8, 212, 25, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  z-index: 3;
  pointer-events: none;
  will-change: transform, opacity, width, height;
}
.otp-success-glow {
  position: absolute;
  inset: -18%;
  border-radius: 24px;
  background: radial-gradient(circle, rgba(8, 212, 25, 0.22), transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.otp-check-svg {
  position: relative;
  z-index: 1;
  width: 70%;
  height: 70%;
  overflow: visible;
}
.otp-check-circle {
  stroke: #08d419;
  stroke-width: 2.4;
  fill: none;
}
.otp-check-mark {
  stroke: #08d419;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.otp-loader {
  position: absolute;
  inset: auto 0 -0.15rem;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  z-index: 2;
}
.otp-loader-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #008375;
  opacity: 0.35;
  animation: otpDot 0.9s ease-in-out infinite;
}
.otp-loader-dot:nth-child(2) { animation-delay: 0.15s; }
.otp-loader-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes otpDot {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.otp-feedback {
  min-height: 1.25rem;
  margin: 0.15rem 0 0.35rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #6b7280;
}
.otp-feedback--error {
  color: #c0392b;
}
.otp-feedback--expired {
  color: #b45309;
}

.otp-resend-form {
  margin-top: 1.15rem;
  position: relative;
}
.otp-timer {
  color: #008375;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem;
}
.otp-resend {
  width: 100%;
  min-height: 46px;
  background: transparent;
  color: #008375;
  border: 1.5px solid #008375;
  border-radius: 12px;
  box-shadow: none;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.otp-resend:hover:not(:disabled) {
  background: #008375;
  color: #fff;
}
.otp-resend:active:not(:disabled) {
  transform: scale(0.98);
}
.otp-resend:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
[x-cloak] {
  display: none !important;
}
.swal-rtl {
  direction: rtl;
  text-align: right;
}

@media screen and (max-width: 414px) {
  .otp-card {
    padding: 1.6rem 1rem 1.3rem;
    border-radius: 24px;
  }
  .otp-title {
    font-size: 1.15rem;
  }
  .otp-cell,
  .otp-digits .otp-field {
    border-radius: 12px;
  }
  .otp-cell::before {
    border-radius: 14px;
  }
}
@media screen and (max-width: 360px) {
  .otp-digits {
    gap: 0.32rem;
  }
  .otp-cell {
    --otp-size: clamp(2.35rem, 13vw, 2.75rem);
  }
  .otp-digits .otp-field {
    font-size: 1.05rem;
    border-radius: 11px;
  }
}
@media screen and (max-width: 320px) {
  .otp-brand {
    font-size: 1.1rem;
  }
  .otp-cell {
    --otp-size: 2.25rem;
  }
  .otp-digits .otp-field {
    font-size: 1rem;
    border-width: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .otp-cell:focus-within::before,
  .otp-digits .otp-field.is-pop,
  .otp-digits--shake {
    animation: none !important;
  }
}

/* Auth flow pages (forgot / new-password) — shared OTP shell */
.auth-flow-page .auth-card {
  text-align: center;
}
.otp-brand--logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 1.15rem;
}
.otp-brand-logo {
  display: block;
  width: auto;
  height: 48px;
  max-width: 150px;
  object-fit: contain;
}
.auth-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem !important;
}
.auth-title-icon {
  color: #008375;
  font-size: 1.25rem;
  line-height: 1;
}
.auth-subtitle {
  margin: 0 0 1.85rem !important;
  padding: 0 0.35rem;
}
.auth-form {
  direction: rtl;
  text-align: right;
  margin-top: 0.15rem;
}
.auth-form .form-field {
  margin: 0 0 0.95rem;
  min-height: 4.6rem;
}
.auth-form .field-error {
  font-size: 0.72rem;
  line-height: 1.35;
  color: #c0392b;
  font-weight: 500;
  padding: 0.25rem 0.35rem 0;
}
.auth-form .field-error .just-validate-error-label {
  font-size: 0.72rem;
}
.auth-form .input-field,
.auth-form .auth-input {
  width: 100%;
  max-width: 100%;
  height: 52px;
  margin: 0;
  background: #f7fbfa;
  border: 1.5px solid rgba(0, 131, 117, 0.22);
  border-radius: 14px;
  padding: 0 8px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  column-gap: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.auth-form .auth-input--password {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
}
.auth-form .input-field.has-error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 1px rgba(231, 76, 60, 0.12);
}
.auth-form .input-field.has-success {
  border-color: rgba(0, 131, 117, 0.55);
}
.auth-form .input-field i,
.auth-form .input-field .auth-input-leading {
  font-size: 1.25rem;
  transform: none !important;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa3af;
  margin: 0;
  padding: 0;
}
.auth-form .input-field:focus-within i,
.auth-form .input-field:focus-within .auth-input-leading {
  color: #008375;
}
.auth-toggle-password {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 100%;
  min-width: 42px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9aa3af;
  cursor: pointer;
  border-radius: 10px;
  flex-shrink: 0;
}
.auth-toggle-password i {
  font-size: 1.2rem !important;
  transform: none !important;
  line-height: 1;
  pointer-events: none;
}
.auth-toggle-password:hover,
.auth-toggle-password:focus-visible {
  color: #008375;
  outline: none;
  background: rgba(0, 131, 117, 0.08);
}
.auth-form .form-control,
.auth-form .input-field input.form-control,
.auth-form .input-field input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: right;
  height: 100% !important;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 4px !important;
  line-height: 1.2;
  display: block;
}
.auth-form .form-control:focus,
.auth-form .input-field input:focus {
  outline: none;
  box-shadow: none !important;
  background: transparent !important;
}

/* Kill browser autocomplete yellow/blue paint */
.auth-form .input-field input:-webkit-autofill,
.auth-form .input-field input:-webkit-autofill:hover,
.auth-form .input-field input:-webkit-autofill:focus,
.auth-form .input-field input:-webkit-autofill:active,
.auth-form input.form-control:-webkit-autofill,
.auth-form input.form-control:-webkit-autofill:hover,
.auth-form input.form-control:-webkit-autofill:focus,
.auth-form input.form-control:-webkit-autofill:active {
  -webkit-text-fill-color: #333 !important;
  caret-color: #333;
  transition: background-color 99999s ease-out 0s;
  box-shadow: 0 0 0 1000px #f7fbfa inset !important;
  -webkit-box-shadow: 0 0 0 1000px #f7fbfa inset !important;
  background-color: transparent !important;
  background-image: none !important;
  filter: none !important;
}
.auth-form .input-field:focus-within input:-webkit-autofill,
.auth-form .input-field:focus-within input:-webkit-autofill:focus {
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
}
@keyframes onAutoFillStart {
  from {/**/}
  to {/**/}
}
.auth-form .input-field input:-webkit-autofill {
  animation-name: onAutoFillStart;
  animation-duration: 0.001s;
}

.auth-form .input-field:focus-within {
  background-color: #fff !important;
  border-color: #008375;
}
.auth-submit {
  width: 100%;
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
}
.auth-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  padding: 0.55rem 1rem;
  color: #008375;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(0, 131, 117, 0.08);
  border: 1px solid rgba(0, 131, 117, 0.14);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.auth-back-link i {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.auth-back-link:hover {
  text-decoration: none;
  background: rgba(0, 131, 117, 0.14);
  border-color: rgba(0, 131, 117, 0.28);
  color: #006b5f;
}
.auth-back-link:hover i {
  transform: translateX(-2px);
}
.auth-feedback {
  min-height: 1.35rem;
  margin: 0.35rem 0 0.65rem;
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: center;
}
.auth-feedback.is-error {
  color: #c0392b;
}
.auth-feedback.is-info {
  color: #008375;
}

/* Auth dark theme logo/card polish */
body.dark-theme.auth-flow-page,
html.dark-theme body.auth-flow-page,
html.dark-theme-pending body.auth-flow-page {
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(0, 131, 117, 0.18), transparent 60%),
    linear-gradient(160deg, #0f1412 0%, #121a18 48%, #101418 100%);
}
body.dark-theme.auth-flow-page .otp-card {
  background: rgba(22, 28, 26, 0.94);
  border-color: rgba(0, 131, 117, 0.22);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
body.dark-theme.auth-flow-page .otp-title,
body.dark-theme.auth-flow-page .auth-title {
  color: #f3f4f6;
}
body.dark-theme.auth-flow-page .otp-subtitle,
body.dark-theme.auth-flow-page .auth-subtitle {
  color: #9ca3af;
}
body.dark-theme.auth-flow-page .auth-form .input-field {
  background: #1a2220;
  border-color: rgba(0, 131, 117, 0.28);
}
body.dark-theme.auth-flow-page .auth-form .input-field:focus-within {
  background-color: #1f2926 !important;
}
body.dark-theme.auth-flow-page .auth-form .form-control,
body.dark-theme.auth-flow-page .auth-form .input-field input {
  color: #f3f4f6 !important;
}
body.dark-theme.auth-flow-page .auth-form .input-field input:-webkit-autofill,
body.dark-theme.auth-flow-page .auth-form .input-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f3f4f6 !important;
  box-shadow: 0 0 0 1000px #1a2220 inset !important;
  -webkit-box-shadow: 0 0 0 1000px #1a2220 inset !important;
}

@media screen and (max-width: 420px) {
  .otp-brand-logo {
    height: 42px;
    max-width: 130px;
  }
  .auth-form .input-field,
  .auth-form .auth-input {
    height: 50px;
    padding: 0 6px;
  }
  .auth-form .auth-input--password {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }
  .auth-toggle-password {
    width: 38px;
    min-width: 38px;
  }
}