@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


* {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('../img/img.jpg') no-repeat;
    background-position: center;
    overflow: hidden;
}

.wrapper {
    width: 420px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    color: #fff;
    border-radius: 10px;
    padding: 30px 40px 0px;
}

.wrapper h1 {
    font-size: 36px;
    text-align: center;
}

.switches-container {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.switches-column {
    width: 48%;
}

.wrapper .input-box {
    width: 100%;
    height: auto;
    margin: 20px 0;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 40px;
    font-size: 16px;
    color: #fff;
    padding: 20px 45px 20px 20px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-box input::placeholder {
    color: #fff;
}

.switch {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 10px 0;
}

.switch .switch-body {
    background-color: #ddd;
    border: solid 1px gray;
    width: 48px;
    border-radius: 24px;
    box-shadow: inset 0 0 2px gray;
    transition: all 0.2s ease;
}

.switch.active .switch-body {
    background-color: #f75164;
}

.switch .switch-body .toggle {
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: inset 0 0 2px gray;
    box-sizing: border-box;
    transition: all 0.35s ease;
}

.switch.active .switch-body .toggle {
    transform: translateX(100%);
}

.switch label {
    margin-left: 10px;
}

.switch input[type=checkbox] {
    display: none;
}

.wrapper .submit-btn {
    width: 100%;
    height: 45px;
    background: #fff;
    border: none;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    cursor: pointer;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.wrapper .submit-btn:hover {
    background-color: #f75164;
    color: #fff;
    transition: all 0.5s ease;
}

.wrapper .remember {
    display: flex;
    text-align: center;
    font-size: 13px;
    margin-top: 30px;
}

.slider-container {
    margin-top: 1.5rem;
    width: 100%;
}

.slider-container .label-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-container.label-container label {
    font-size: 1rem;
}

.slider-container .label-container span {
    font-size: 1.625rem;
    color: rgb(255, 255, 255);
    font-weight: 400;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.slider-container .label-container span.pop {
    transform: scale(1.2);
    text-shadow: 0 0 8px rgba(247, 81, 100, 0.3);
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    overflow: hidden;
    width: 100%;
    height: 24px;
    margin-top: 0.1rem;
    background: #ddd;
    cursor: pointer;
    border-radius: 24px;
    border: solid 1px gray;
    box-shadow: inset 0 0 2px gray;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 24px;
    background: #ddd;
    border-radius: 24px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 2px solid #f75164;
    border-radius: 50%;
    box-shadow: -410px 0 0 400px #f75164;
    cursor: pointer;
    position: relative;
    box-shadow: inset 0 0 2px gray, -410px 0 0 400px #f75164;
}

/* For Firefox */
input[type="range"]::-moz-range-track {
    height: 24px;
    background: #ddd;
    border-radius: 24px;
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #fff;
    border: 2px solid #f75164;
    border-radius: 50%;
    box-shadow: -410px 0 0 400px #f75164;
    cursor: pointer;
}

.slider-container input {
    padding: 0px;
}

.password-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.password-result {
    flex: 1;
}

.copy-btn {
    flex-shrink: 0;
}

.copy-btn button {
    display: flex;
    padding: 10px;
    background: #f75164;
    color: #fff;
    font-size: 19px;
    border: none;
    outline: none;
    border-radius: 10px;
    cursor: pointer;
    height: 100%;
}

.copy-btn button:hover {
    background-color: #fff;
    color: #f75164;
    transition: all 0.5s ease;
}

footer {
    text-align: center;
    margin-top: 10px;
    color: #fff;
    font-size: 12px;
}

a {
    color: #fff;
}

a:hover {
    color: #f75164;
    transition: all 0.5s ease;
}

#generatedPassword.pop {
    transform: scale(1.02);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.strength-container {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.strength-container p {
    margin: 0;
    font-size: 14px;
}

.strength-bars {
    display: flex;
    gap: 5px;
    flex: 1;
    margin-left: 10px;
}

.strength-bar {
    height: 10px;
    flex: 1;
    background-color: #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.strength-weak .strength-bar:nth-child(1) {
    background-color: #f75164;
}

.strength-medium .strength-bar:nth-child(1),
.strength-medium .strength-bar:nth-child(2) {
    background-color: #f7a951;
}

.strength-strong .strength-bar:nth-child(1),
.strength-strong .strength-bar:nth-child(2),
.strength-strong .strength-bar:nth-child(3) {
    background-color: #51f751;
}

.strength-very-strong .strength-bar {
    background-color: #00eeff;
}

.strength-text {
    font-size: 14px;
    font-weight: 600;
    min-width: 100px;
    text-align: right;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.strength-weak .strength-text {
    color: #ff6b6b;
}

.strength-medium .strength-text {
    color: #ffd93d;
}

.strength-strong .strength-text {
    color: #6bff6b;
}

.strength-very-strong .strength-text {
    color: #00eeff;
}

@media (max-width: 480px) {
    .wrapper {
        width: 95%;
        padding: 15px;
        margin: 10px;
    }

    .wrapper h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .switches-container {
        flex-direction: column;
    }

    .switches-column {
        width: 100%;
    }

    .password-container {
        flex-direction: column;
        gap: 15px;
    }

    .copy-btn {
        width: 100%;
        margin-top: 5px;
    }

    .copy-btn button {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .input-box input {
        padding: 15px;
        font-size: 14px;
    }

    .slider-container .label-container span {
        font-size: 1.25rem;
    }

    .strength-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .strength-bars {
        width: 100%;
        margin-left: 0;
    }

    .strength-text {
        align-self: flex-end;
    }

    .remember {
        margin-top: 20px;
        font-size: 12px;
    }
}