﻿@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'El Messiri', sans-serif;
    box-sizing: border-box;
}

body {
    color: #000000 !important;
    font-size: 16px;
    /* Default font size */
    line-height: 1.5;
    /* Default line height */
}

.fas {
    width: 32px;
}

section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(-45deg,#ea433578, #0dcaf0, #34A853, #ffc107);
    background-size: 400% 400%;
    animation: gradient 10s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.fa-solid, .fas {
    position: absolute;
    top: 12px;
    left: 10px;
}

.box {
    position: relative;
}

.square {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    animation: square 10s linear infinite;
}

/* Define the keyframes */
@keyframes square {
    0%, 100% {
        transform: translateY(-20px);
    }

    50% {
        transform: translateY(20px);
    }
}

.square:nth-child(1) {
    width: 100px;
    height: 100px;
    top: -15px;
    right: -45px;
    --i: 1;
}

.square:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 105px;
    left: -125px;
    z-index: 2;
    --i: 2;
}

.square:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 85px;
    right: -45px;
    z-index: 2;
    --i: 3;
}

.square:nth-child(4) {
    width: 50px;
    height: 50px;
    bottom: 35px;
    left: -35px;
    --i: 4;
}

.square:nth-child(5) {
    width: 50px;
    height: 50px;
    top: -15px;
    left: -25px;
    --i: 5;
}

.square:nth-child(6) {
    width: 85px;
    height: 85px;
    top: 165px;
    right: -73px;
    z-index: 2;
    --i: 6;
}


@media screen and (max-width: 572px) {
    .container {
        width: 350px !important;
        padding: 10px !important;
        backdrop-filter: none;
    }
    .square:nth-child(1), .square:nth-child(2), .square:nth-child(3), .square:nth-child(4), .square:nth-child(5), .square:nth-child(6) {
        display: none;
    }
}

@media screen and (max-width: 680px)and (min-width: 572px) {
    .square:nth-child(6) {
        right: -25px;
        z-index: 2;
        width: 60px;
        height: 60px;
    }

    .container {
        width: 480px;
        backdrop-filter: none;
    }

    .square:nth-child(4) {
        left: -60px ;
    }

    .square:nth-child(5) {
        left: -25px ;
    }

    .square:nth-child(1) {
        width: 90px;
        height: 85px;
        right: -27px;
    }

    .square:nth-child(2) {
        width: 102px;
        height: 110px;
        left: -88px;
    }

    .square:nth-child(3) {
        right: -24px ;
        z-index: 2;
    }

    .form h2 {
        font-size: 25px;
        font-weight: bold;
        text-align: center;
    }

}



@media screen and (max-width: 825px) and (min-width: 680px) {
    .container {
        backdrop-filter: none;
        padding: 20px;
        width: 270px;
    }

    .square:nth-child(1) {
        right: -82px ;
    }

    .square:nth-child(2) {
        left: -132px ;
    }

    .square:nth-child(3) {
        right: -50px ;
    }

    .square:nth-child(4) {
        left: -38px ;
    }

    .square:nth-child(5) {
        left: -37px;
    }

    .square:nth-child(6) {
        right: -70px ;
    }
}



.container {
    position: relative;
    padding: 50px;
    width: 516px;
    min-height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: none;
    border-radius: 10px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
}

    .container::after {
        content: '';
        position: absolute;
        top: 5px;
        right: 5px;
        bottom: 5px;
        left: 5px;
        border-radius: 5px;
        pointer-events: none;
        background: linear-gradient( to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 2% );
    }

.form {
    position: relative;
    width: 100%;
    height: 100%;
}
    h2{
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 30px;
}
.inputBx i {
    color: white;
}
.inputBx {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}
    input{
    width: 100%;
    outline: none;
    border: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 10px;
    padding-left: 40px;
    border-radius: 15px;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.password-control {
    position: absolute;
    top: 11px;
    right: 10px;
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url(https://snipp.ru/demo/495/view.svg) 0 0 no-repeat;
    transition: 0.5s;
}

.view {
    background: url(https://snipp.ru/demo/495/no-view.svg) 0 0 no-repeat;
    transition: 0.5s;
}



.fas {
    position: absolute;
    top: 13px;
    left: 13px;
}

input[type="submit"] {
    background: #fff;
    color: #111;
    max-width: 100%;
    padding: 8px 10px;
    box-shadow: none;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 1.5s;
}

    input[type="submit"]:hover {
        background: linear-gradient(115deg, rgba(0,0,0,0.10), rgba(255,255,255,0.25));
        color: #fff;
        transition: .5s;
    }

input::placeholder {
    color: #fff;
}

span {
    position: absolute;
    left: 30px;
    padding: 10px;
    display: inline-block;
    color: #fff;
    transition: .5s;
    pointer-events: none;
}

input:focus ~ span,
input:valid ~ span {
    transform: translateX(-30px) translateY(-25px);
    font-size: 12px;
}



p {
    color: #fff;
    font-size: 15px;
    margin-top: 5px;
}

a{
    color: #fff;
}

.remember {
    position: relative;
    display: inline-flex;
    color: #fff;
    margin-bottom: 10px;
    cursor: pointer;
    gap: 5px;
    align-items: baseline;
}
