@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');
@keyframes animate{
    0%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(360deg);
    }
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Popinns", sans-serif;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background:url(/img/fon/fon_login.jpg);
    background-size: cover;
    background-position: center;
}

.wrapper{
    position: relative;
    width: 750px;
    height: 440px;
    background: #1c1c1c;
    border-radius: 10px;
    overflow: hidden;
}

.form-group {
    display: flex;
    justify-content: space-between;
    gap: 50px; /* Уменьшить разрыв между полями */
}

.input-box {
    flex: 1;
}

.wrapper form{
    position: absolute;
    inset: 4px;
    background: #222;
    padding: 50px 40px;
    border-radius: 10px;
    z-index: 2;
}

.borderLine{
    position: absolute;
    top: 0;
    inset: 0;
}

.wrapper::before{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 750px;
    height: 440px;
    background: linear-gradient(0deg, transparent,
    transparent, #45f3ff, #45f3ff, #45f3ff);
    z-index: 1;
    transform-origin: bottom right;
    animation: animate 6s linear infinite;
}

.borderLine::before{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 750px;
    height: 440px;
    background: linear-gradient(0deg, transparent,
    transparent, #ff2770, #ff2770, #ff2770);
    z-index: 1;
    transform-origin: bottom right;
    animation: animate 6s linear infinite;
    animation-delay: -1.5s;
}

.wrapper::after{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 750px;
    height: 440px;
    background: linear-gradient(0deg, transparent,
    transparent, #45f3ff, #45f3ff, #45f3ff);
    z-index: 1;
    transform-origin: bottom right;
    animation: animate 6s linear infinite;
    animation-delay: -3s;
}
.borderLine::after{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 750px;
    height: 440px;
    background: linear-gradient(0deg, transparent,
    transparent, #ff2770, #ff2770, #ff2770);
    z-index: 1;
    transform-origin: bottom right;
    animation: animate 6s linear infinite;
    animation-delay: -4.5s;
}

.wrapper h1{
    color: #fff;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.1em;
}

.wrapper form .input-box{
    position: relative;
    width: 300px;
    margin-top: 35px;
}

.wrapper form .input-box input{ 
    position: relative;
    width: 100%;
    padding: 20px 10px 10px;
    background: transparent;
    outline: none;
    border: none;
    box-shadow: none;
    color: #23242a;
    font-size: 1em;
    letter-spacing: 0.05em;
    transition: 0.5s;
    z-index: 10;
}

.wrapper form .input-box span{
    position:absolute;
    left: 0;
    padding: 20px 0px 10px;
    pointer-events: none;
    color: #8f8f8f;
    font-size: 16px;
    letter-spacing: 0.05em;
    transition: 0.05s;
}


.wrapper form .input-box input:valid ~ span,
.wrapper form .input-box input:focus ~ span{
    color: #fff;
    font-size: 0.75em;
    transform: translateY(-34px);
}

.wrapper form .input-box i{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 40px;
    overflow: hidden;
    transition: 0.5s;
    pointer-events: none;
}

.wrapper form .input-box input:valid ~ i,
.wrapper form .input-box input:focus ~ i{
    height: 44px;
}

/*-----------------------------------------------phone--------------------------------------------*/

.phone-box {
    display: flex;
    align-items: center;
}

.phone-box select {
    width: 75px;
    margin-top: 10px;
    padding: 12px;
    border-radius: 40px;
    background: transparent;
    border: 1px solid #8f8f8f;
    color: #23242a;
    font-size: 1em;
    margin-right: 10px;
    transition: 0.5s;
    z-index: 10;
}

.phone-box input {
    flex: 1;
    padding: 20px 0px 0px;
    background: transparent;
    outline: none;
    border: 1px solid #8f8f8f;
    color: #23242a;
    font-size: 1em;
    letter-spacing: 0.05em;
    transition: 0.5s;
    z-index: 10;
}

.phone-box select:focus,
.phone-box input:focus {
    border-color: #03e9f4;
}

.phone-box select,
.phone-box input {
    border-radius: 40px;
}

/* Появление эффектов */
.phone-box input:valid ~ i,
.phone-box input:focus ~ i,
.phone-box select:focus ~ i {
    height: 44px;
}

/*-------------------------------------Конопка----------------------------------------------------*/
.btn {
    position: relative;
    display: inline-block;
    width: 103%;
    padding: 15px 0;
    margin: 20px auto 0;
    color: #03e9f4;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 4px;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    text-align: center;
    transition: 0.5s;
}

.btn span {
    position: absolute;
    display: block;
    border-radius: inherit;
}

.btn span:nth-child(1) {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #03e9f4);
    animation: animate1 1s linear infinite;
    border-radius: inherit;
}

.btn span:nth-child(2) {
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #03e9f4);
    animation: animate2 1s linear infinite;
    animation-delay: 0.25s;
    border-radius: inherit;
}

.btn span:nth-child(3) {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, #03e9f4);
    animation: animate3 1s linear infinite;
    animation-delay: 0.5s;
    border-radius: inherit;
}

.btn span:nth-child(4) {
    bottom: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #03e9f4);
    animation: animate4 1s linear infinite;
    animation-delay: 0.75s;
    border-radius: inherit;
}

.btn:hover {
    background: #03e9f4;
    color: #050801;
    box-shadow: 0 0 5px #03e9f4, 0 0 25px #03e9f4, 0 0 50px #03e9f4, 0 0 200px #03e9f4;
}

        /* Анимации */
@keyframes animate1 {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

@keyframes animate2 {
    0% {
        top: -100%;
    }
    50%, 100% {
        top: 100%;
    }
}

@keyframes animate3 {
    0% {
        right: -100%;
    }
    50%, 100% {
        right: 100%;
    }
}

@keyframes animate4 {
    0% {
        bottom: -100%;
    }
    50%, 100% {
        bottom: 100%;
    }
}
/* ---------------------------------------------------------------------------------------------------*/