/*== Global Style ==*/
:root{
  --primary-color: #209901;
  --secondary-color: #010c01;
  --weak-color:rgb(255, 92, 92);
  --medium-color: rgb(255, 255, 122);
  --strong-color: rgb(85, 255, 85);
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif; 
}

body{
  background-color: #001400;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: black;
  padding: 20px;
}

.container{
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.192);
  width: 90%;
  max-width: 450px;
}

h1{
  text-align: center;
  margin-bottom: 1.2rem;
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}



.password-container{
  margin-bottom: 2rem;
  background-color: #e9e9e9;
  border-radius: 10px;
  border: 1px solid #c7c7c7;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 1rem 0 0;
}

#password{
  width: 100%;
  padding: 1.1rem;
  padding-right: 50px;
  border: none;
  background: transparent;
  color: #303030;
  letter-spacing: 1px;
  outline:none;
  border-radius: 10px;
}

#copy-btn{
  cursor: pointer;
  color: var(--secondary-color);
  font-size: 1.1rem;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

#copy-btn:hover{
  color: var(--primary-color);
}

.options{
  margin-bottom: 2rem;
  background-color: #ececec;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.041);
}

.option{
  display: flex;
  justify-content: space-between;
  align-self: center;
  margin-bottom: 1rem;
}

.option:last-child{
  margin-bottom: 0rem;
}

.option label{
  font-size: 0.9rem;
  color: #303030;
  font-weight: 500;
}

.range-container{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 60%;

}

input[type="range"]{
  accent-color: var(--primary-color);
  height: 10px;
  cursor: pointer;
  flex: 1;
  width: 60px;
}

input[type="checkbox"]{
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
  appearance: none;
  border-radius: 2px;
  cursor: pointer;
  outline: none;
  position: relative;
  transition: all 0.5s;
}

input[type="checkbox"]:checked{
  background-color: var(--primary-color);
}

input[type="checkbox"]:checked::after{
  content: "\2714";
  position:absolute;
  color: white;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
}

#length-value{
  font-weight: 600;
  color: var(--primary-color);
  width: 30px;
  text-align: center;
  background-color: #bebebe;
  padding: 2px 5px;
  border-radius: 4px;
}
button{
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  cursor: pointer;
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3;
  margin-bottom: 1rem;
  border-radius: 10px;
}

button:hover{
transform: translateY(-2px);
}

button:active{
transform: translateY(0);
}



.strength-container p{
  font-size: 0.9rem;
  color: #010c01;
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}

#strength-label{
  color: var(--primary-color);
  font-weight: 600;
}

.strength-meter{
  height: 10px;
  background-color: #f0f0f0;
  border-radius: 5px;
  margin-top: 0.5rem;
  overflow: hidden;
  box-shadow: inset 0 1px 2px #010c0109;
}

.strength-bar{
  height: 100%;
  width: 0;
  min-width: 5%;
  background-color: var(--weak-color);
  transition: all 0.3 ease;
  border-radius: 5px;
}
.notice{
  margin-top: 0.5rem;
  padding: 4px;
  background-color: var(--weak-color);
  font-size: 0.8rem;
  color: white;
  border-radius: 5px;
  text-align: center;
}
@media (max-width: 768px) {
  .container{
    width: 95%;
    padding: 1.8rem;
  }
  h1{
    font-size: 1.6rem;
  }
  .option label{
    font-size: 0.9rem;
  }
}