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

/* Containers */

body {
    font-family: 'Noto Sans Display', sans-serif;
    background-color: #E5E7EB;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

main {
    width: 352px;
    padding: 32px 16px;
    border: solid 2px #6B7280;
    border-radius: 24px;
    background-color: #F9FAFB;
    box-shadow: 0 24px 64px 0 rgba(156, 163, 175, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;

}

/* Typography */

h1 {
    font-weight: 200;
    text-align: center;
    font-size: 24px;
    color: black;
}




#user-name {
    font-weight: 400;
    font-size: 12px;
    font-style: italic;
    color: #374151;
}

#password-output {
    font-family: "Geist Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 8%;
    color: #374151;
    text-align: center;
}

p {
    font-weight: 400;
    font-size: 14px;
    color: #374151;
}


/* Info Container */

.container-gap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 320px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#password-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
}

/* Password Output */

#password-field-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 8px;
    border: solid 1px #E7E7E7;
    border-radius: 8px;
    background-color: #EBECF0;
    color: #1F2937;
    font-weight: 400;
    font-size: 16px;
}

#password-field-1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 8px;
    border: dashed 1px #cecfd0;
    border-radius: 12px;
    background-color: #F3F4F6;
    color: #1F2937;
    font-weight: 400;
    font-size: 16px;
}

#strength-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

#strength-indicator {
    display: flex;
    align-items: center;
    width: 40%;
    height: 8px;
    border-radius: 8px;
    background-color: #EBECF0;
}

.indicator {
    height: 8px;
    border-radius: 8px;
}

#strength-weak {
    display:flex;
    background-color: #F87171;
    width: 33.33%;
}

#strength-medium {
    display: none;
    background-color: #FBBF24;
    width: 66.66%;
}

#strength-strong {
    display: none;
    background-color: #10B981;
    width: 100%;
}


/* Controller */


#length-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 8px;
    margin-top: 12px;
}

#password-length{
    width: 100%;
}

#special-characters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Hide the default checkbox */
.switch input {
    display: none;
}

/* Switch container */
.switch {
    position: relative;
    width: 50px;
    height: 28px;
    display: inline-block;
}

/* Background */
.slider {
    position: absolute;
    inset: 0;
    background-color: #d1d5db;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Circle */
.slider::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

/* ON state */
.switch input:checked + .slider {
    background-color: #22c55e;
}

.switch input:checked + .slider::before {
    transform: translateX(22px);
}


/* Button */

#copy-btn {
    padding: 6px 12px;
    border: solid 0.5px #9CA3AF;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1F2937;
    font-weight: 400;
    font-size: 12px;
    cursor: pointer;
}

#generate-btn {
    width: 100%;
    padding: 16px 10px;
    border: none;
    border-radius: 12px;
    background-color: #10B981;
    color: #F9FAFB;
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
}

.length-btn {
    padding: 10px 10px;
    font-weight: 300;
    font-size: 24px;
    background-color: #eeeeee;
    border: solid 0px #9CA3AF;
    border-radius: 12px;
    width: 100%;
    text-align: center;
}


/* Selected Password Length */
.selected-length {
        border: solid 0.5px #9CA3AF;
        color: #282828;
        background-color: #e8e8e8;
}



/* Divider */

#divider {
    width: 100%;
    height: 1px;
    background-color: #EBECF0;
}