@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&display=swap");

:root {
  --primary: #0F3443;
  --primary-light: #34E89E;
  --primary-dark: #0B1D1E;
  --background: #e0f2f1;
  --highlight: #ff5722;
  --text-color: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: "Poppins", sans-serif;
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
  background: var(--background);
}

.container {
  height: 100vh;
  display: grid;
  place-items: center;
}

.box {
  height: 40rem;
  width: 40rem;
  background: linear-gradient(
    145deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  overflow: hidden;
  position: relative;
}

.upper {
  flex-grow: 1;
  text-align: center;
  color: var(--text-color);
}

.upper h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

#password {
  width: 100%;
  height: 4rem;
  background-color: var(--primary-dark);
  color: var(--highlight);
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#password:hover {
  background-color: var(--primary-light);
  transform: scale(1.05);
}

.range_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.checkboxes {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
}

.form_control {
  display: flex;
  justify-content: space-between;
}

.form_control label {
  font-size: 1.4rem;
  letter-spacing: 0.3px;
  color: var(--text-color);
}

input[type="range"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 0.5rem;
  padding: 0;
  outline: none;
  cursor: pointer;
  background: var(--primary-light);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 2rem;
  width: 1rem;
  background-color: var(--highlight);
  border: 2px solid var(--primary-dark);
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background-color: var(--primary-light);
}

input[type="checkbox"] {
  accent-color: var(--highlight);
}

#genBtn {
  background: var(--highlight);
  border: none;
  padding: 1rem 2rem;
  font-size: 1.8rem;
  color: var(--text-color);
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, transform 0.3s ease;
}

#genBtn:hover {
  background: var(--primary-light);
  transform: scale(1.05);
}

#genBtn:active {
  background: var(--primary-dark);
  color: var(--highlight);
}

@media (max-width: 425px) {
  .box {
    width: 95%;
    height: auto;
    padding: 1.5rem;
  }

  .upper h1 {
    font-size: 2rem;
  }

  #password {
    font-size: 1.4rem;
  }

  #genBtn {
    font-size: 1.6rem;
    padding: 0.8rem 1.5rem;
  }
}
