﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Popins',sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #23242a;
}

.box {
    position: relative;
    width: 380px;
    height: 420px;
    overflow: hidden;
    background: #1c1c1c;
    border-radius: 8px;
}

    .box::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        transform-origin: bottom right;
        width: 380px;
        height: 420px;
        background: linear-gradient(0deg,transparent,#18A7B5,#18A7B5);
        animation: animate 6s linear infinite;
    }

    .box::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        transform-origin: bottom right;
        width: 380px;
        height: 420px;
        background: linear-gradient(0deg,transparent,#18A7B5,#18A7B5);
        animation: animate 6s linear infinite;
        animation-delay: -3s;
    }

@keyframes animate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.form {
    position: absolute;
    inset: 2px;
    background: #28292d;
    z-index: 10;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
}

    .form h2 {
        color: #18A7B5;
        font-weight: 500;
        text-align: center;
        letter-spacing: 0.1em;
    }

.inputbox {
    position: relative;
    width: 300px;
    margin-top: 35px;
}

    .inputbox input {
        position: relative;
        width: 100%;
        padding: 20px 10px 10px;
        background: transparent;
        border: none;
        outline: none;
        z-index: 10;
        color: #23242a;
        font-size: 1em;
        letter-spacing: 0.05em;
    }

    .inputbox span {
        color: white;
        pointer-events: none;
        letter-spacing: 0.05em;
        transition: 0.5s;
        position: absolute;
        left: 0;
        font-size: 1em;
        padding: 20px 10px 10px;
    }

    .inputbox input:valid ~ span,
    .inputbox input:focus ~ span {
        color: #18A7B5;
        transform: translateX(-10px) translateY(-34px);
        font-size: 0.75em;
    }

    .inputbox i {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 2px;
        background: #18A7B5;
        border-radius: 4px;
        z-index: 9;
        transition: 0.5s;
        pointer-events: none;
    }

    .inputbox input:valid ~ i,
    .inputbox input:focus ~ i {
        height: 44px;
    }


.button1 {
    border: none;
    outline: none;
    background: #18A7B5;
    padding: 11px 25px;
    width: 100px;
    margin-top: 10px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

    .button1 :active {
        opacity: 0.8;
    }
