.auth-page {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: #ecf0f6;
  color: #1e293b;
  font-family: "Vazirmatn", sans-serif;
  direction: rtl;
}

.auth-page *,
.auth-page *::before,
.auth-page *::after {
  box-sizing: border-box;
}

.auth-page .container {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-page .form_card {
  display: flex;
  width: 100%;
  max-width: 1000px;
  min-height: 540px;
  align-items: stretch;
  overflow: hidden;
  padding: 20px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 6%), 0 12px 24px rgb(128 128 128 / 8%);
}

.auth-page .form_card > img {
  display: block;
  width: 50%;
  max-width: 50%;
  min-width: 0;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
}

.auth-page .form_section {
  display: flex;
  width: 50%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.auth-page .title {
  margin: 0 0 10px;
  color: #1e293b;
  font-family: "Vazirmatn", sans-serif;
  font-size: 30px;
  font-weight: 700;
  text-align: center;
}

.auth-page .input_group {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 16px;
}

.auth-page .auth_field {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.auth-page .input_group .input {
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 0 12px;
  border: 1px solid #d4d7e3;
  border-radius: 12px;
  outline: none;
  background: #f7fbff;
  color: #334155;
  font: 400 17px/1.5 "Vazirmatn", sans-serif;
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-page .input_group .input::placeholder {
  color: #8996aa;
  opacity: 1;
}

.auth-page .input_group .input:focus-visible {
  border-color: #244371;
  box-shadow: 0 0 0 3px rgb(36 67 113 / 16%);
}

.auth-page .input_group .input[aria-invalid="true"] {
  border-color: #c54b52;
}

.auth-page .password_field {
  position: relative;
}

.auth-page .password_field .input {
  padding-left: 48px;
}

.auth-page .input_group .password_toggle {
  position: absolute;
  top: 50%;
  left: 10px;
  display: inline-flex;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.auth-page .input_group .password_toggle:hover {
  background: #edf1f6;
}

.auth-page .input_group .password_toggle:active {
  transform: translateY(-50%);
}

.auth-page .inline_error {
  display: block;
  width: 100%;
  color: #a1262d;
  font-size: .8rem;
  line-height: 1.7;
  text-align: right;
}

.auth-page .inline_error[hidden] {
  display: none;
}

.auth-page .password_help {
  margin: -10px 2px -4px;
  color: #737d96;
  font-size: .78rem;
  line-height: 1.8;
  text-align: right;
}

.auth-page .password_feedback {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: -10px 2px -4px;
  color: #737d96;
  font-size: .76rem;
  line-height: 1.65;
  text-align: right;
}

.auth-page .password_feedback_heading,
.auth-page .password_requirement_count,
.auth-page .password_feedback_note {
  margin: 0;
}

.auth-page .password_feedback_heading strong {
  color: #64748b;
  font-weight: 700;
}

.auth-page .password_strength_meter {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e9f1;
}

.auth-page .password_strength_fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #94a3b8;
  transition: width 140ms ease, background-color 140ms ease;
}

.auth-page .password_strength_meter[data-strength="weak"] .password_strength_fill {
  background: #c54b52;
}

.auth-page .password_strength_meter[data-strength="medium"] .password_strength_fill {
  background: #d18b22;
}

.auth-page .password_strength_meter[data-strength="strong"] .password_strength_fill {
  background: #16845b;
}

.auth-page .password_requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-page .password_requirement {
  color: #737d96;
}

.auth-page .password_requirement span {
  display: inline-block;
  min-width: 1em;
  font-weight: 700;
}

.auth-page .password_requirement.is-met,
.auth-page .password_requirement.is-met span {
  color: #16845b;
}

.auth-page .password_requirement.is-unmet span {
  color: #9aa4b5;
}

.auth-page .password_feedback_note {
  color: #737d96;
}

.auth-page .password_confirmation_status {
  display: block;
  width: 100%;
  margin-top: -12px;
  font-size: .78rem;
  line-height: 1.7;
  text-align: right;
}

.auth-page .password_confirmation_status[hidden] {
  display: none;
}

.auth-page .password_confirmation_status.is-match {
  color: #16845b;
}

.auth-page .password_confirmation_status.is-mismatch {
  color: #a1262d;
}

.auth-page .auth_text_actions {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
}

.auth-page .input_group .text_action {
  width: auto;
  min-height: 0;
  height: auto;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #496bd9;
  font-size: .84rem;
  line-height: 1.8;
  text-align: center;
}

.auth-page .input_group .text_action:hover {
  background: transparent;
  text-decoration: underline;
}

.auth-page .input_group .text_action:active {
  transform: none;
}

.auth-page .input_group button:disabled {
  cursor: wait;
  opacity: .7;
}

.auth-page .input_group button {
  width: 100%;
  min-height: 58px;
  padding: 8px 14px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  font: 500 17px/1.5 "Vazirmatn", sans-serif;
  transition: background-color 160ms ease, transform 100ms ease;
}

.auth-page .input_group button:focus-visible,
.auth-page .footer_text a:focus-visible {
  outline: 3px solid #5e81f4;
  outline-offset: 3px;
}

.auth-page .input_group button:active {
  transform: scale(.985);
}

.auth-page .primary_btn {
  background: #244371;
}

.auth-page .primary_btn:hover {
  background: #1a3256;
}

.auth-page .secondary_btn,
.auth-page .change_btn {
  background: #162d3a;
}

.auth-page .secondary_btn:hover,
.auth-page .change_btn:hover {
  background: #0f1f28;
}

.auth-page .error_text {
  width: 100%;
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid #f1b9bc;
  border-radius: 10px;
  background: #fff5f5;
  color: #a1262d;
  font-size: .9rem;
  line-height: 1.8;
  text-align: center;
}

.auth-page .error_text[hidden] {
  display: none;
}

.auth-page .footer_text {
  width: 100%;
  margin: 20px 0 0;
  color: #737d96;
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.9;
  text-align: center;
}

.auth-page .footer_text a {
  color: #496bd9;
  text-decoration: none;
}

.auth-page .footer_text a:hover {
  text-decoration: underline;
}

.auth-page .mobileNav {
  display: none;
}

@media (min-width: 769px) and (max-width: 1200px) {
  .auth-page .form_card {
    max-width: 880px;
    min-height: 500px;
    padding: 18px;
  }

  .auth-page .form_card > img {
    width: 46%;
    max-width: 46%;
  }

  .auth-page .form_section {
    width: 54%;
    padding: 24px;
  }

  .auth-page .title {
    font-size: 1.8rem;
  }

  .auth-page .input_group {
    gap: 14px;
  }

  .auth-page .input_group .input,
  .auth-page .input_group button {
    min-height: 54px;
    height: 54px;
    font-size: .95rem;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .auth-page .container {
    padding: 20px;
  }

  .auth-page .form_card {
    flex-direction: column;
    max-width: 520px;
    min-height: auto;
    padding: 24px;
    border-radius: 22px;
  }

  .auth-page .form_card > img {
    display: none;
  }

  .auth-page .form_section {
    width: 100%;
    padding: 8px 5px;
  }

  .auth-page .title {
    font-size: 1.65rem;
  }

  .auth-page .input_group .input,
  .auth-page .input_group button {
    min-height: 54px;
    height: 54px;
    font-size: .95rem;
  }
}

@media (max-width: 576px) {
  .auth-page .container {
    padding: 12px;
  }

  .auth-page .form_card {
    flex-direction: column;
    min-height: auto;
    padding: 16px 14px;
    border-radius: 18px;
  }

  .auth-page .form_card > img {
    display: none;
  }

  .auth-page .form_section {
    width: 100%;
    padding: 6px 0;
  }

  .auth-page .title {
    margin-bottom: 8px;
    font-size: 1.35rem;
  }

  .auth-page .input_group {
    gap: 12px;
  }

  .auth-page .input_group .input,
  .auth-page .input_group button {
    height: 50px;
    min-height: 50px;
    border-radius: 10px;
    font-size: .88rem;
  }

  .auth-page .footer_text {
    margin-top: 18px;
    font-size: .74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page .input_group .input,
  .auth-page .input_group button,
  .auth-page .password_strength_fill {
    transition: none;
  }
}
