@font-face {
  font-family: "Montserrat";
  src: url("../palabras-cruzadas/assets/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../palabras-cruzadas/assets/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Montserrat", system-ui, sans-serif;
  color: #16202a;
  background: #eef3f8;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(244, 154, 33, 0.15), transparent 27rem),
    radial-gradient(circle at top right, rgba(36, 133, 107, 0.12), transparent 30rem),
    linear-gradient(180deg, #fbfdff, #eef3f8);
}

.reset-header {
  width: min(100% - 32px, 1080px);
  margin: 0 auto;
  padding: 22px 0;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #174876;
  text-decoration: none;
}

.brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #235f9f;
  color: white;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(35, 95, 159, 0.24);
}

.brand strong {
  font-size: 1.08rem;
  font-weight: 900;
}

.reset-main {
  min-height: calc(100vh - 82px);
  display: grid;
  place-items: start center;
  padding: clamp(18px, 6vh, 68px) 16px 42px;
}

.reset-card {
  width: min(100%, 520px);
  min-width: 0;
  padding: clamp(24px, 6vw, 38px);
  border: 1px solid #d9e2ee;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 65px rgba(23, 40, 64, 0.13);
}

.kicker {
  margin: 0 0 8px;
  color: #f49a21;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.65rem, 6vw, 2.25rem);
  line-height: 1.12;
}

.intro,
.reset-help,
.reset-complete p {
  color: #667386;
  line-height: 1.55;
}

.intro {
  margin: 14px 0 20px;
}

.reset-status {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #c8dbef;
  border-radius: 10px;
  background: #f4f8ff;
  color: #174876;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.45;
}

.reset-status.is-error {
  border-color: #ffd6d1;
  background: #fff5f3;
  color: #b42318;
}

form {
  min-width: 0;
  display: grid;
  gap: 15px;
}

label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 900;
}

input,
button,
.reset-complete a {
  box-sizing: border-box;
  max-width: 100%;
}

input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #cbd7e5;
  border-radius: 10px;
  background: #fbfdff;
  color: #16202a;
  font: inherit;
  font-weight: 700;
}

input:focus {
  border-color: #235f9f;
  outline: 3px solid rgba(35, 95, 159, 0.14);
}

button,
.reset-complete a {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 0;
  border-radius: 10px;
  background: #235f9f;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

button:disabled {
  background: #9bb8d8;
  cursor: wait;
}

.reset-complete {
  padding: 16px;
  border: 1px solid #bde3d7;
  border-radius: 12px;
  background: #f2faf7;
  color: #176b55;
}

.reset-complete p {
  margin: 7px 0 14px;
}

.reset-help {
  margin: 20px 0 0;
  font-size: 0.78rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 374px) {
  .reset-header {
    width: min(100% - 24px, 1080px);
    padding: 15px 0;
  }

  .reset-main {
    padding: 8px 12px 28px;
  }

  .reset-card {
    padding: 22px 18px;
    border-radius: 13px;
  }
}
