body {
    margin: 0;
    padding: 3rem 0;
    font-family: Arial, sans-serif;
    background-color: #101010;
    color: #f5f5f5;
    overflow-x: hidden;
    font-size: 1.2rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100vw;
    flex-direction: column;
}

body>form{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    flex-shrink: 0;
    gap: 3rem;
    align-items: center;
    text-align: center;
    min-height: 90vh;
    background-color: #202020;
    padding: 3vh 1vh;
    border-radius: .5vh;
    box-shadow: 0 0 .5vh #acacac;
    max-width: 90vw;
    width: 50rem;
}

a{
    text-decoration: none;
    color: #529efb;
}

h2, .h2{font-size: 2.25rem;}
h3, .h3{font-size: 1.8rem;}
h4, .h4{font-size: 1.5rem;}
h5, .h5{font-size: 1.2rem;}
h6, .h6{font-size: 0.9rem;}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6{
    font-weight: bold;
    text-align: center;
    color: #529efb;
    font-family: 'Comic Sans MS', sans-serif;
    margin: 0;
}


.hidden{
    display: none;
}

.txt-center{
    text-align: center;
}

.generator{
    justify-content: space-around;
    width: 80%;
    gap: 1rem;
}

#generated-passwd{
    width: 50%!important;
}

#copy-pwd{
    width: 2rem;
    height: 2rem;
    background-color: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    background-image: url('../../assets/img/copy-icon.svg');
    background-repeat: no-repeat;
    background-size: 2rem 2rem;
    cursor: pointer;
    position: relative;
}

#copy-pwd.copied:before{
    content: '\2705 Skopiowano do schowka!';
    position: absolute;
    top: -3rem;
    white-space: nowrap;
    left: 50%;
    font-size: 1rem;
    background-color: #202020;
    box-shadow: 0 0 .5vh #acacac;
    padding: .2rem;
    border-radius: .3rem;
    animation: copied 5s ease-in-out;
    opacity: 0;
}

@keyframes copied {
    0%{opacity: 1;}
    80%{opacity: 1;}
    100%{opacity: 0;}
}

.btn, button, [type="submit"], [type="button"], [type="reset"]{
    background-color: #008bff;
    color: #f5f5f5;
    padding: 2vh 4vh;
    border-radius: 1vh;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}
.btn:hover, button:hover, [type="submit"]:hover, [type="button"]:hover, [type="reset"]:hover, .btn:focus, button:focus, [type="submit"]:focus, [type="button"]:focus, [type="reset"]:focus{
    background-color: #003ff1;
}

.btn:disabled, button:disabled, [type="submit"]:disabled, [type="button"]:disabled, [type="reset"]:disabled{
    background-color: #404040;
    color: #acacac;
    cursor: not-allowed;
}

input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="tel"], input[type="url"], input[type="search"], #generated-passwd{
    background-color: #303030;
    color: #f5f5f5;
    padding: 2vh 5%;
    border-radius: 1vh;
    border: none;
    font-size: 1.2rem;
    width: 80%;
    transition: all 0.3s ease-in-out;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="tel"]:focus, input[type="url"]:focus, input[type="search"]:focus{
    background-color: #404040;
    outline: none;
    box-shadow: 0 0 1vh #529efb;
}

.logo, .horiz{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.vertical{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}


h1, .h1{font-size: 2.5rem;}
.logo img{
    height: 2.5rem;
    width: 2.5rem;
}
.logo{
    gap: 1vh;
}

@media(min-width: 351px){
    h1, .h1{font-size: 3rem;}
    .logo img{
        height: 3rem;
        width: 3rem;
    }
    .logo{
        gap: 2vh;
    }
}

.error{
    color: #ff0000;
    font-size: 1rem;
    font-weight: bold;
}


div.ui-toggle{
    margin: 0;
    padding: 0;
    margin-left: 1rem;
}

div.ui-toggle>input[type='checkbox']{
    display: none;
}

div.ui-toggle>input[type='checkbox']:checked + label{
    border-color: #003ff1;
    background-color: #003ff1;
    box-shadow: inset 0 0 .2rem .2rem #529efb;
}

div.ui-toggle>input[type='checkbox']:checked + label > div{
    margin-left: 1.5rem;
}

div.ui-toggle>label{
    transition:all .3s ease-in-out;
    display: inline-block;
    position: relative;
    background-color: #000;
    box-shadow: inset 0 0 0 0 #008bff;
    border: .1rem solid #000;
    border-radius: 1.5rem;
    width: 3rem;
    height: 1.5rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    -webkit-touch-callout: none;
    cursor: pointer;
}

div.ui-toggle>label>div{
    transition:all .3s ease;
    background-color: #fff;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: .75rem;
    cursor: pointer;
}

::-webkit-scrollbar{
    width: .7rem;
    background-color: #000000;
    box-shadow: inset 0 0 5px #acacac;
}
::-webkit-scrollbar-thumb{
    background-color: #008bff;
    border-radius: 0.5rem;
    cursor: pointer;
    box-shadow: inset 0 0 5px #84bbff;
    transition: all 0.3s ease-in-out;
}
::-webkit-scrollbar-thumb:hover{
    background-color: #003ff1;
}

#pwstrength{
    height: .5rem;
    width: 60%;
    background-color: #808080;
    border-radius: .5rem;
    position: relative;
    background-image: linear-gradient(to right, #ff0000, #ff0000);
    background-size: 20% 100%;
    background-repeat: no-repeat;
    margin-bottom: 1rem;
}

#pwstrength::after{
    content: attr(data-txt);
    position: absolute;
    top: 1rem;
    left: 0;
    width: 100%;
    text-align: center;
}

#pwstrength::before{
    content: 'Siła hasła: ';
    position: absolute;
    top: -1.6rem;
    left: 0;
    width: 100%;
    text-align: center;
}

[type="password"]{
    background-image: url('../../assets/img/pwd-icon.svg');
    background-repeat: no-repeat;
    background-position: 1% center;
    background-size: 2rem 2rem;
    padding-left: 3rem!important;
}

[type="email"]{
    background-image: url('../../assets/img/email-icon.svg');
    background-repeat: no-repeat;
    background-position: 1% center;
    background-size: 2rem 2rem;
    padding-left: 3rem!important;
}

#pwdconf{color: red;}

.pointer{
    cursor: pointer;
}

[type="radio"]{
    appearance: none;
    -webkit-appearance: none;
    width: 2vh;
    height: 2vh;
    margin-right: 1vh;
    border-radius: 50%;
    border: .2rem solid #003ff1;
    cursor: pointer;
    transition: all .3s ease-in-out;
    height: 1.3rem;
    width: 1.3rem;
}
[type="radio"]:checked{
    background-image: radial-gradient(#91c2ff, #008bff);
    transition: all .3s ease-in-out;
}