:root {
  --correo-yellow: #ffce00;
  --correo-blue: #152663;
  --correo-black: #191919;
  --correo-gray: #49454f;
  --correo-light: #fafafa;
  --correo-line: #d9d9d9;
  --danger: #d8203a;
  --success: #0a7b43;
  --focus: #2196f3;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--correo-light);
  color: var(--correo-black);
  font-family: "Gilroy-Regular", "Segoe UI", Arial, sans-serif;
}

a {
  color: var(--correo-blue);
  text-decoration: none;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  background: var(--correo-yellow);
  box-shadow: 0 1px 0 rgba(25, 25, 25, 0.08);
}

.nav {
  min-height: 60px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  display: block;
  width: 183px;
  max-width: 48vw;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
}

.nav-links a {
  border-bottom: 3px solid transparent;
  padding: 19px 0 16px;
  color: var(--correo-blue);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--correo-blue);
}

.reset-page {
  min-height: calc(100vh - 160px);
  padding-top: 60px;
}

.hero {
  position: relative;
  min-height: 880px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--correo-blue);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(21, 38, 99, 0.74), rgba(25, 25, 25, 0.12) 50%, rgba(25, 25, 25, 0.52));
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 880px;
  object-fit: cover;
  display: block;
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 90px 500px 90px 42px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.paqar-logo {
  width: min(220px, 42vw);
}

.paqar-title {
  width: min(470px, 62vw);
}

.reset-card {
  position: absolute;
  z-index: 2;
  top: 118px;
  right: max(34px, calc((100vw - 1160px) / 2 + 28px));
  width: min(407px, calc(100vw - 48px));
  min-height: 430px;
  padding: 30px 34px 28px;
  border-radius: 18px;
  background: rgba(25, 25, 25, 0.7);
  color: #ffffff;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(2px);
}

.form-head {
  text-align: center;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--correo-yellow);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.2;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.form-head p:last-child {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.45;
}

.security-note {
  margin: -6px 0 16px;
  padding: 10px 12px;
  border-left: 4px solid var(--correo-yellow);
  border-radius: 6px;
  background: rgba(255, 206, 0, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  line-height: 1.35;
}

.field {
  margin-top: 14px;
}

.field label {
  display: block;
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.86rem;
  font-weight: 600;
}

.password-control {
  display: flex;
  min-height: 48px;
}

.password-control input {
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  padding: 12px 14px;
  font: inherit;
  color: var(--correo-black);
  background: #ffffff;
  outline: 0;
}

.password-control input::placeholder {
  color: #6f6f76;
}

.password-control input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.18);
}

.toggle-password {
  width: 62px;
  flex: 0 0 62px;
  border: 1px solid transparent;
  border-left: 1px solid var(--correo-line);
  border-radius: 0 6px 6px 0;
  background: #ffffff;
  color: var(--correo-blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.toggle-password:hover,
.toggle-password:focus-visible {
  color: rgba(21, 38, 99, 0.75);
  outline: 0;
}

.field small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.error {
  display: block;
  min-height: 18px;
  margin-top: 5px;
  color: #ffbec8;
  font-size: 0.8rem;
  font-weight: 600;
}

.password-control.has-error input,
.password-control.has-error .toggle-password {
  border-color: var(--danger);
}

.strength {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 8px 0 14px;
}

.strength span {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.strength[data-level="1"] span:nth-child(1),
.strength[data-level="2"] span:nth-child(-n + 2),
.strength[data-level="3"] span {
  background: var(--correo-yellow);
}

.form-alert {
  min-height: 22px;
  margin: 0 0 13px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.form-alert.success {
  color: #d4ffe9;
}

.submit-button {
  width: 100%;
  min-height: 46px;
  border: 2px solid var(--correo-yellow);
  border-radius: 999px;
  background: var(--correo-yellow);
  color: var(--correo-blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: rgba(255, 206, 0, 0.76);
  border-color: rgba(255, 206, 0, 0.76);
  outline: 0;
}

.submit-button:disabled {
  background: #d9d9d9;
  border-color: #d9d9d9;
  color: #8a8a8a;
  cursor: not-allowed;
}

.divider {
  height: 1px;
  margin: 22px 0 16px;
  background: rgba(255, 255, 255, 0.35);
}

.secondary-link {
  display: block;
  width: fit-content;
  margin: 0 auto;
  color: #ffffff;
  font-weight: 700;
  border-bottom: 3px solid var(--correo-yellow);
  padding-bottom: 2px;
}

.footer {
  min-height: 100px;
  padding: 22px 20px 30px;
  background: var(--correo-yellow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.footer img {
  max-height: 48px;
}

.footer small {
  color: var(--correo-blue);
  font-weight: 600;
}

@media (max-width: 992px) {
  .hero {
    min-height: 980px;
  }

  .hero-media img {
    min-height: 980px;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(21, 38, 99, 0.38), rgba(25, 25, 25, 0.62));
  }

  .hero-copy {
    align-items: center;
    justify-content: flex-start;
    padding: 42px 24px 0;
    text-align: center;
  }

  .reset-card {
    top: 226px;
    right: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 700px) {
  .nav {
    min-height: 58px;
    padding: 0 18px;
  }

  .brand img {
    width: 148px;
  }

  .nav-links {
    display: none;
  }

  .reset-page {
    padding-top: 58px;
  }

  .hero,
  .hero-media img {
    min-height: 960px;
  }

  .paqar-logo {
    width: 112px;
  }

  .paqar-title {
    width: min(292px, 84vw);
  }

  .reset-card {
    top: 172px;
    padding: 26px 22px 24px;
  }

  h1 {
    font-size: 1.3rem;
  }
}

@media (max-width: 360px) {
  .reset-card {
    width: calc(100vw - 28px);
    padding-right: 16px;
    padding-left: 16px;
  }

  .toggle-password {
    width: 54px;
    flex-basis: 54px;
  }
}
