* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.regis-outer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70%;
  margin: 0 15%;
  background-image: url(images/backdrop-dark-1.png);
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  background-size: cover;
  height: 100vh;
}

.buycrym {
  --field-width: 80%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px solid green;
  background-color: lightgreen;
  margin-top: calc(var(--navbar-height) + 0.1rem);
  width: 65%;
  height: auto;
  padding: 3% 0;
  border-radius: 1rem;

  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  color: white;

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}
.buycrym h2 {
  margin-bottom: 3%;
}

#main {
  display: flex;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  padding: 1%;
  background-image: url(images/backdrop-dark-1.png);
}

.main-inner-divs {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  color: white;

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

input {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
  padding: 1%;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: var(--field-width);
}

#main input,
.main-last-div input {
  color: #000;
}
#reg_password {
  color: #000 !important;
  caret-color: #000;
  -webkit-text-fill-color: #000;
}

/* ============ PASSWORD FIELD (copied exactly from change-password / styledashboard.css) ============ */
.password-field {
  position: relative;
  width: var(--field-width);
}

.password-field input {
  width: 100%;
  padding-right: 2.5rem;
}

.password-eye-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333;
  padding: 0;
}

/* ============ PASSWORD REQUIREMENT HINT (green theme, copied exactly) ============ */
.password-hint {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #eafbea;
  border: 1px solid #34d399;
  border-radius: 4px;
  padding: 2%;
  margin-top: 1%;
  font-size: 0.85em;
  z-index: 10;
  width: 75%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  color: #166534;
}

.password-hint.visible {
  display: block;
}

.hint-item {
  color: #383a3f;
}

.hint-item.passed {
  color: #15803d;
  font-weight: 700;
}

.main-last-div {
  width: 90%;
  margin-top: 2%;
  font-size: 1.2rem;
}
.main-last-div p {
  margin-top: 1%;
  text-align: left;
  font-size: 1.2rem;
}
.main-last-div button {
  padding: 1%;
  align-self: center;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1%;
}
.main-last-div .check {
  height: 1.5rem;
  width: 1.5rem;
}

/* ********************1440px************************ */
@media (max-width: 1440px) {
  .buycrym {
    width: 70%;
  }
  .main-last-div,
  .main-last-div p {
    font-size: 1.1rem;
  }
}

/* ---------- 1024px (small laptops / tablet landscape) ---------- */
@media (max-width: 1024px) {
  .regis-outer {
    width: 100%;
    margin: 0;
    height: auto;
    min-height: 100vh;
    padding: 1rem 0;
  }

  .buycrym {
    width: 90%;
    margin-bottom: 1rem;
  }
}

/* ---------- 768px (tablets / large phones) ---------- */
@media (max-width: 768px) {
  .buycrym {
    --field-width: 90%;
    width: 95%;
    margin-top: calc(4.5rem + 1rem); /* clears the 4.5rem mobile nav bar */
    padding: 4% 0;
  }

  .buycrym h2 {
    font-size: 1.5em;
  }

  #main {
    flex-direction: column;
    gap: 0.75rem;
    padding: 2%;
  }

  .main-inner-divs {
    padding: 0.75rem;
  }

  input {
    padding: 0.5rem;
  }

  .password-hint {
    width: 100%;
  }

  .main-last-div {
    width: 95%;
  }
  .main-last-div,
  .main-last-div p {
    font-size: 1.05rem;
  }
}

/* ----------501px (large phones) ---------- */
@media (max-width: 501px) {
  .regis-outer {
    padding: 0.5rem 0;
  }

  .buycrym {
    --field-width: 100%;
    width: 96%;
    border-radius: 0.75rem;
    padding: 5% 0;
  }

  .buycrym h2 {
    font-size: 1.3em;
  }

  #main {
    padding: 3%;
  }

  .main-inner-divs {
    padding: 0.6rem;
    font-size: 0.95rem;
  }

  input {
    font-size: 1rem; /* stops iOS from zooming in on focus */
  }

  .main-last-div {
    width: 96%;
  }
  .main-last-div,
  .main-last-div p {
    font-size: 0.95rem;
  }
  .main-last-div button {
    width: 100%;
    padding: 0.6rem;
  }
}
