@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');
@import "/src/css/animation.css";
@import "/src/css/variables.css";
@import "/src/css/buttons.css";
@import "/src/css/modern-normalize.min.css";

body {
    background-color:var(--grey950);
    font-family: var(--text-preset);
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 64px 16px 0 16px;
    width:100%;
    min-height: 900px;
    color:var(--grey200);
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    & main {
        display: flex;
        flex-direction: column;
        row-gap: 16px;
        width: 100%;   
    }
}

.first-section-container {
    text-align: center;
    & h1 {
        margin:0;
        color: var(--grey600);
        font-weight: 700;
        font-size: 16px;
    }
}

.password-preview-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--grey800);
    padding: 16px;
    & span {
        font-size: 24px;
        font-weight: 700;
        color: var(--grey700);
    }
    & img {
        width: 17px;
    }
}

.second-section-container {
    display: flex;
    flex-direction: column;
    padding:16px;
    background-color: var(--grey800);

    .input-range-label-container {
        display: flex;
        justify-content: space-between;
        margin-bottom: 16px;
        .character-counter {
            color: var(--green200);
            font-size: 24px;
            font-weight: 700;       
        }
    }             /*  CUSTOM INPUT FIELD RANGE start*/
    .character-length-input-select {
        .length-input-wrapper {
            display: flex;
            align-items: center;
            width: 100%;
            height: 28px;
            #character-length {
                -webkit-appearance: none;  /* Chrome, Safari */
                appearance: none;
                width: 100%;
                height: 8px;
                cursor: pointer;
                background: var(--grey850);
                outline: none;
                
            }
            #character-length::-webkit-slider-thumb {
                -webkit-appearance: none;
                appearance: none;
                width: 28px;
                height: 28px;
                background-color: var(--grey200);
                border-radius: 50%;
                cursor: pointer;
                border: none;
                margin-top: -12px;
                transition: all 0.3s ease;
            }
            #character-length::-webkit-slider-thumb:active {
                background: var(--grey800);
                border: solid 2px var(--green200);
                transform: scale(1.1);
            }
            #character-length::-moz-range-thumb {
                width: 16px;
                height: 16px;
                background: var(--grey800);
                border-radius: 50%;
                cursor: pointer;
                border: none;             
            }
            #character-length::-webkit-slider-runnable-track {
                height: 6px;
                background: var(--grey850);
            }
        }
    }            /*  CUSTOM INPUT FIELD RANGE end*/
}


.password-preview-strength-container {
    display:flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--grey850);
    padding:14px 16px;
    margin-bottom:16px;
    span {
        text-transform: uppercase;
        color: var(--grey600); 
        font-weight: 700;
        line-height: 20px;
        height: 20px;
    }
    .password-strength-status-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        span {
            text-transform: uppercase;
            color: var(--grey200);
            font-weight: 700;
            line-height: 20px;
            margin-right: 16px;
            font-size: 18px;
        }
        .password-strength-scale-container {
            width: 64px;
            height: 28px;
            display: flex;
            flex-direction: row;
            justify-content: space-evenly;
            column-gap: 8px;
            color: currentColor;
                div {
                    height: 100%;
                    width: 10px;
                    border: 2px solid currentColor;
                    transition: background-color 0.3s ease;
                }
                div:active {
                    background-color: currentColor;
                    border-color: currentColor;
                }
            }
        }
    }
.too-weak .password-strength-scale-element.active {
    background-color: var(--red500);
    color: var(--red500);
}
.weak .password-strength-scale-element.active {
    background-color: var(--orange400);
    color: var(--orange400);
}
.medium .password-strength-scale-element.active {
    background-color: var(--yellow300);
    color: var(--yellow300);
}
.strong .password-strength-scale-element.active {
    background-color: var(--green200);
    color: var(--green200);
}
footer {
    .author-info {
        p {
            color: aliceblue;
            font-size: 16px;
            letter-spacing: 2px;
            a {
                color:var(--grey600);
            }
            a:hover {
                text-decoration:none;
            }
            a:active {
                color:aliceblue;
            }
        }
    }
}