*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}
body{
display:flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: linear-gradient(to right, #f36f17d8, #ffff );
}
.box{
    position: relative;
    width: 380px;
    height: 420px;
    background:#e97d0a;
    border-radius: 8px;
    overflow: hidden;
}
.box::before{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 420px;
    background: linear-gradient(0deg, transparent, #000000, #000000);
    transform-origin: bottom right ;
    animation: girar 6s linear infinite;
}

.box::after{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 420px;
    background: linear-gradient(0deg, transparent, #000000, #000000);
    transform-origin: bottom right ;
    animation: girar 6s linear infinite;
    animation-delay: -3s;
}
@keyframes girar{
    0%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(360deg);
    }
}
.formu{
    position: absolute;
    inset:2px;
    border-radius: 8px;
    background:#ffffff;
    z-index: 10;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
}
.formu h2{
    color: #484950;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.1rem;
}

.inputbox{
    position: relative;
    width: 300px;
    margin-top: 35px;
}
.inputbox input{
    position: relative;
    width: 100%;
    padding:20px 10px 10px;
    background: transparent;
    border: none;
    outline: none;
    color: #464646;
    font-size: 1em;
    letter-spacing: 0.05em;
    z-index: 10;
}
.inputbox span{
    position: absolute;
    left: 0;
    padding: 20px 0px 10px ;
    font-size: 1em;
    color:#8f8f8f;
    pointer-events: none;
    letter-spacing: 0.05em;
    transition: 0.5s;
}
.inputbox input:valid ~ span,
.inputbox input:focus ~ span
{
    color:  #1d1d1d;
    transform:translateX(0px) translateY(-34px);
    font-size: 0.75em;
}
.inputbox i{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #d1d1d1;
    border-radius: 4px;
    transition: 0.5s;
    pointer-events: none;
    z-index: 9;
}
.inputbox input:valid ~ i,
.inputbox input:focus ~ i
{
    height: 44px;
}

.link{
    display: flex;
    justify-content: space-between;
}
    .link a{
        margin: 10px 0;
        font-size: 0.75em;
        color:#8f8f8f;
        text-decoration: none;
    }
.link a:hover,
.link a:nth-child(2){
    color:#e16b17;
}

input[type="submit"]{
    border: none;
    outline: none;
    background-color:  #fb7900;
    color: #fff;
    padding: 11px 25px;
    width: 100px;
    margin-top:10px ;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}
input[type="submit"]:hover{
    opacity: 0.8;
}

 #loading {
    display: none;
    position: fixed;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8);
    top: 0;
    left: 0;

    /* Centralização perfeita */
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
       #loading .spinner {
    border: 8px dotted #f3f3f3;
    border-top: 8px solid #fb7900;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}