.password-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #214d7a 0 335px, #ffffff 335px 100%);
  position: relative;
  overflow-x: hidden;
  padding: 24px 16px 48px;
}

.password-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}

.password-logo {
  width: 84px;
  height: 84px;
  object-fit: cover;
}

.password-org,
.password-suborg {
  font-family: "Poppins", sans-serif;
  color: #ffffff;
  text-align: center;
}

.password-org {
  font-size: 22px;
  font-weight: 600;
}

.password-suborg {
  font-size: 14px;
  font-weight: 400;
}

.password-card {
  width: min(768px, calc(100% - 32px));
  margin: 40px auto 0;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  padding: 34px 48px 30px;
}

.password-card-sm {
  max-width: 768px;
}

.password-title {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #214d7a;
  text-align: center;
}

.password-description {
  margin: 24px 0 0;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #4f6b8b;
  text-align: center;
}

.password-description.centered {
  text-align: center;
}

.password-form {
  margin-top: 28px;
}

.password-field {
  margin-bottom: 26px;
}

.password-label {
  display: block;
  margin: 0 0 12px 18px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #214d7a;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid #d6dfeb;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(33, 77, 122, 0.10);
}

.password-input-wrap:focus-within {
  border-color: #214d7a80;
  box-shadow: 0 10px 22px rgba(33, 77, 122, 0.16);
}

.password-input-icon {
  position: absolute;
  left: 18px;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.password-input {
  width: 100%;
  height: 52px;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 18px 0 64px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: #214d7a;
}

.password-input::placeholder {
  color: #8aa0bb;
}

.password-input-secret {
  padding-right: 58px;
}

.password-toggle {
  position: absolute;
  right: 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.password-toggle img {
  width: 24px;
  height: 24px;
}

.password-primary-btn,
.password-primary-btn.as-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border: none;
  border-radius: 14px;
  background: #214d7a;
  box-shadow: 0 10px 22px rgba(33, 77, 122, 0.22);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}

.password-primary-btn:hover,
.password-primary-btn.as-link:hover {
  background: #285a8e;
}

.password-secondary-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 22px auto 18px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111111;
  text-decoration: none;
}

.password-secondary-link::before {
  content: "\2190";
  margin-right: 12px;
  font-size: 24px;
  line-height: 1;
}

.password-divider {
  height: 1px;
  background: rgba(17, 17, 17, 0.35);
}

.password-illustration {
  position: relative;
  width: 124px;
  height: 106px;
  margin: 18px auto 24px;
}

.password-image-wrap {
  display: flex;
  justify-content: center;
  margin: 18px 0 24px;
}

.password-status-image {
  width: 124px;
  max-width: 100%;
  height: auto;
  display: block;
}

.password-mail-icon {
  position: absolute;
  left: 18px;
  top: 10px;
  width: 74px;
  height: 86px;
  border-radius: 12px;
  background: #214d7a;
}

.password-mail-icon::before,
.password-mail-icon::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 16px;
  height: 0;
  border-top: 6px solid transparent;
}

.password-mail-icon::before {
  border-left: 25px solid #ffffff;
  border-bottom: 16px solid transparent;
  transform: rotate(-31deg);
  left: 10px;
  top: 20px;
}

.password-mail-icon::after {
  border-right: 25px solid #ffffff;
  border-bottom: 16px solid transparent;
  transform: rotate(31deg);
  right: 10px;
  top: 20px;
}

.password-check-icon {
  position: absolute;
  right: 6px;
  bottom: 8px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #3eb489;
}

.password-check-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 13px;
  width: 10px;
  height: 18px;
  border: solid #ffffff;
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}

.password-alert-card {
  margin: 28px 0 34px;
  border: 1px solid #f5b1b1;
  border-radius: 18px;
  background: #fdecec;
  overflow: hidden;
}

.password-alert-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #f8d7d7;
  border-bottom: 1px solid #f1b1b1;
  font-family: "Poppins", sans-serif;
  color: #b63b34;
}

.password-alert-head strong {
  font-size: 14px;
  font-weight: 600;
}

.password-alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e0524b;
  color: #ffffff;
  font-weight: 700;
}

.password-alert-card p {
  margin: 0;
  padding: 18px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #9b5c5c;
}

.password-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 30;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  gap: 12px;
  width: min(420px, calc(100% - 32px));
  padding: 14px 14px 16px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
  border: 1px solid #fecaca;
  color: #7f1d1d;
  font-family: "Poppins", sans-serif;
  overflow: hidden;
}

.password-toast.is-hidden {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.password-toast-icon {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dc2626;
}

.password-toast-icon::before,
.password-toast-icon::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 6px;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.password-toast-icon::before {
  transform: rotate(45deg);
}

.password-toast-icon::after {
  transform: rotate(-45deg);
}

.password-toast-content strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.password-toast-content ul {
  margin: 0;
  padding-left: 18px;
}

.password-toast-content li {
  font-size: 13px;
  line-height: 1.45;
}

.password-toast-close {
  border: none;
  background: transparent;
  color: #7f1d1d;
  font-size: 20px;
  cursor: pointer;
}

.password-toast-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #dc2626;
  transform-origin: left;
  animation: passwordToastTimer 7s linear forwards;
}

@keyframes passwordToastTimer {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@media (max-width: 768px) {
  .password-card {
    padding: 28px 22px 26px;
  }
}

@media (max-width: 480px) {
  .password-page {
    background: linear-gradient(180deg, #214d7a 0 280px, #ffffff 280px 100%);
    padding-inline: 12px;
  }

  .password-logo {
    width: 74px;
    height: 74px;
  }

  .password-org {
    font-size: 18px;
  }

  .password-suborg,
  .password-description,
  .password-label,
  .password-input,
  .password-secondary-link,
  .password-alert-card p {
    font-size: 13px;
  }

  .password-card {
    width: calc(100% - 8px);
    margin-top: 34px;
    border-radius: 18px;
  }

  .password-toast {
    top: 16px;
    left: 12px;
    right: 12px;
    width: auto;
  }
}
