/* Reset Password Form Container */
.reset-password-form-container {
  direction: rtl;
  padding: 2rem 0;
}

.reset-password-form-container .auth-container {
  margin: 2rem 0;
}

.reset-password-form-container .form-description {
  color: var(--y-color-text-dark);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.reset-password-form-container form h1 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reset-password-form-container form h1 span {
  display: flex;
  align-items: center;
}

.reset-password-form-container form h1 svg {
  width: 24px;
  height: 24px;
  color: var(--y-secondary);
}

.reset-password-form-container .required {
  color: #e74c3c;
  margin-right: 0.25rem;
}

.reset-password-form-container .password-input-wrapper {
  position: relative;
  width: 100%;
}

.reset-password-form-container .password-input-wrapper input[type="password"],
.reset-password-form-container .password-input-wrapper input[type="text"] {
  padding-left: 3rem;
}

.reset-password-form-container .toggle-password {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: color 0.3s ease;
  z-index: 1;
  width: auto;
  min-width: auto;
  max-width: 2.5rem;
  height: auto;
  flex-shrink: 0;
}

.reset-password-form-container .toggle-password:hover {
  color: var(--y-main);
}

.reset-password-form-container .toggle-password:focus {
  outline: none;
  color: var(--y-main);
}

.reset-password-form-container .toggle-password i {
  font-size: 1.1rem;
  display: inline-block;
  line-height: 1;
  width: auto;
  height: auto;
}

/* Password Reset Confirmation Box */
.password-reset-confirmation {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem;
  direction: rtl;
}

.confirmation-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  max-width: 600px;
  width: 100%;
  text-align: center;
  border: 2px solid var(--y-main);
}

.confirmation-icon {
  font-size: 5rem;
  color: #4caf50;
  margin-bottom: 1.5rem;
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.confirmation-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--y-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.confirmation-message {
  font-size: 1.1rem;
  color: var(--y-color-text-dark);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.confirmation-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-back-login,
.btn-back-home {
  padding: 0.875rem 2rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-back-login {
  background: var(--y-secondary);
  color: white;
}

.btn-back-login:hover {
  background: var(--y-main);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(177, 129, 85, 0.3);
  color: white;
}

.btn-back-home {
  background: transparent;
  color: var(--y-secondary);
  border: 2px solid var(--y-secondary);
}

.btn-back-home:hover {
  background: var(--y-secondary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(172, 83, 0, 0.2);
}

.btn-back-login i,
.btn-back-home i {
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .password-reset-confirmation {
    padding: 1.5rem;
    min-height: 50vh;
  }

  .confirmation-box {
    padding: 2rem 1.5rem;
  }

  .confirmation-icon {
    font-size: 4rem;
  }

  .confirmation-title {
    font-size: 1.5rem;
  }

  .confirmation-message {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .confirmation-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-back-login,
  .btn-back-home {
    width: 100%;
    justify-content: center;
  }
}

.auth-container {
  display: grid;
  grid-template-columns: 1.5fr 2.2fr;
  gap: 2rem;
  align-items: center;
  margin: 4rem 0;
}
.img-container {
  display: flex;
}
.img-container img {
  height: 700px;
  object-fit: cover;
  object-position: top;
  border-radius: 20px;
  width: 100%;
}
form h1 {
  color: var(--y-secondary);
  font-weight: 600;
  margin-bottom: 3rem;
}
form {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 1.2rem;
}
input {
  padding: 0.8rem;
  border: 1px solid #2e2e2e;
  border-radius: 20px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  width: 100%;
}

/* Password input wrapper with toggle button */
.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
  padding-left: 3rem;
}

.toggle-password {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: color 0.3s ease;
  z-index: 1;
  width: auto;
  min-width: auto;
  max-width: 2.5rem;
  height: auto;
  flex-shrink: 0;
}

.toggle-password:hover {
  color: var(--y-main);
}

.toggle-password:focus {
  outline: none;
  color: var(--y-main);
}

.toggle-password i {
  font-size: 1.1rem;
  display: inline-block;
  line-height: 1;
  width: auto;
  height: auto;
}

.toggle-password.active i.fa-eye::before {
  content: "\f070"; /* fa-eye-slash */
}

.toggle-password.active i.fa-eye-slash::before {
  content: "\f06e"; /* fa-eye */
}
div.checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  margin-left: 5rem;
  font-size: 1rem;
  font-weight: 500;
}

label.checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  margin-left: 5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  position: relative;
}

label.checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

label.checkbox .checkmark {
  height: 20px;
  width: 20px;
  background-color: #eee;
  border-radius: 4px;
  border: 1px solid #2e2e2e;
  margin-left: 0.5rem;
  box-sizing: border-box;
}

label.checkbox:hover input ~ .checkmark {
  background-color: #ccc;
}

label.checkbox input:checked ~ .checkmark {
  background-color: #333;
  border-color: #333;
}

label.checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

label.checkbox input:checked ~ .checkmark:after {
  display: block;
}

label.checkbox .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

@media (max-width: 992px) {
  .auth-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 1rem;
  }
  .img-container img {
    height: 500px;
  }
  form {
    padding: 2rem 1.5rem;
  }
  label {
    font-size: 1.1rem;
  }
  input {
    margin: 0 0 1.2rem 3rem;
    padding: 0.75rem;
  }
  label.checkbox {
    margin-left: 3rem;
  }
}

@media (max-width: 820px) {
  .auth-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 1rem;
  }
  .img-container {
    display: none;
  }
  form h1 {
    text-align: center;
    font-size: 1.8rem;
  }
  form label {
    font-size: 1rem;
  }
  form .checkbox {
    font-size: 0.95rem;
  }
  input {
    margin: 0 0 1rem 0;
    padding: 0.7rem;
    font-size: 0.95rem;
  }
  label.checkbox {
    margin-left: 0;
  }
  div.checkbox {
    margin-left: 0;
  }
  form p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  form {
    padding: 1.5rem;
  }
  .toggle-password {
    transform: translateY(-65%);
  }
  .reset-password-form-container .toggle-password {
    transform: translateY(-65%);
  }
}

@media (max-width: 576px) {
  .auth-container {
    margin: 1rem 0.5rem;
    gap: 0.5rem;
  }
  form {
    padding: 1.25rem;
    border-radius: 8px;
  }
  form h1 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  form label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }
  form .checkbox {
    font-size: 0.85rem;
  }
  input {
    padding: 0.6rem;
    font-size: 0.9rem;
    border-radius: 12px;
    margin-bottom: 0.875rem;
  }
  form p {
    font-size: 0.85rem;
  }
  label.checkbox .checkmark {
    height: 18px;
    width: 18px;
  }
  label.checkbox .checkmark:after {
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
  }
  .toggle-password {
    transform: translateY(-65%);
  }
  .reset-password-form-container .toggle-password {
    transform: translateY(-65%);
  }
}
