* {
    margin: 0;
    padding: 0;
}

body {
    height: 100vh;
    display: flex;
    background-color: rgb(15, 15, 15);
}

header i {
    position: absolute;
    left: 2.5rem;
    top: 2.5rem;
    color: white;
    font-size: 1.5rem;
    transition: 0.4s ease;
}

header i:hover {
    scale: 1.2;
    cursor: pointer;
}

.container {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin: auto;
    gap: 2rem;
    background-color: white;
    padding: 2rem;
    border-radius: 3rem;
    color: rgb(15, 15, 15);
    transition: transform 0.4s ease;
}

.form {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: auto;
    gap: 2.5rem;
}

.length-message {
    display: inline;
    font-weight: bold;
}

.container-range-inputs {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -1rem;
}

.password-length {
    position: absolute;
    pointer-events: none;
    -webkit-appearance: none;
    border: 1px solid rgb(15, 15, 15, 0.5);
    border-radius: 1rem;
    height: 0px;
}

.password-length::-webkit-slider-thumb {
    pointer-events: all;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    -webkit-appearance: none;
    height: 15px;
    width: 15px;
    background: rgb(15, 15, 15);
    cursor: pointer;
    border-radius: 1rem;
}

.password-length::-webkit-slider-thumb:hover {
    transform: scale(1.2); 
    background: #1089eb;
}

.container-checkboxes{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: start;
}

.container-checkbox {
    display: flex;
    align-items: center;
}

.container-checkbox p {
    margin-left: 1rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.input-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(15, 15, 15);
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

.slider:hover {
    background-color: #1089eb;
}

.switch:hover .slider {
    transform: scale(1.05); 
}

input:checked+.slider {
    background-color: #1089eb;
}

input:focus+.slider {
    box-shadow: 0 0 1px #1089eb;
}

input:checked+.slider:before {
    -webkit-transform: translateX(24px);
    -ms-transform: translateX(24px);
    transform: translateX(24px);
    background-color: white;
}

.generate-button {
    width: 5rem;
    padding: 0.5rem;
    border-radius: 2rem;
    border: 0;
    background-color: rgb(15, 15, 15);
    color: white;
    transition: all 0.4s ease;
}

.generate-button:hover {
    background-color: #1089eb;
    color: white;
    cursor: pointer;
    transform: scale(1.05); 
}

.password-message {
    display: none;
    margin: auto;
    text-align: center;
}