@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --mainColor: #89216b;
    --whiteColor: #ffffff;
    --titleColor: #555555;
    --labelColor: #333333;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-image: url('img/fundo.png');
    background-size: cover;     
    background-position: center;
    background-repeat: no-repeat;  
    background-attachment: fixed;   
    font-weight: 400;
    min-height: 100vh;
    display: grid;
    place-content: center;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}
.wrapper {
    position: relative;
    width: 35rem;
    height: 50rem;
}

@media(min-width: 540px) {
    .wrapper {
        width: 40rem;
    }
}

.wrapper .form-container {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #333333;
    border-radius: .5rem;
    box-shadow: 0 0 1rem 0 rgba(0 0 0 / .2);
}

.wrapper .form-container form h2 {
    font-size: 3rem;
    text-align: center;
    text-transform: capitalize;
    color: var(--titleColor);
}

.wrapper .form-container form .form-group {
    position: relative;
    width: 32rem;
    margin: 3rem 0;
}


.wrapper .form-container form .form-group i,
.wrapper .form-container form .form-group label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    color: var(--labelColor);
    pointer-events: none;
   border-radius: 4%;
   
   
   transition: all .5s ease;
}


.wrapper .form-container form .form-group label {
    left: 1.5rem;
}

.wrapper .form-container form .form-group input {
    width: 100%;
    height: 4.5rem;  
    padding: 5px 1.5rem 0 1.8rem; 
    border-radius: 0.8rem; 
    border: 2px solid #e0e0e0; 
    outline: none;
    font-size: 1.5rem;
    color: #333333;
    
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); 
}


form .form-group input:focus~label,
form .form-group input:valid~label,
form .form-group input:focus~i,
form .form-group input:valid~i {
    top: 0 !important;
    margin-top: 10px;
    font-size: 1rem !important;
    background-color: transparent;
    margin-left: 3px;
}

.wrapper .form-container form .forgot-pass {
    margin: -1.5rem 0 1.5rem;
}

.wrapper .form-container form .forgot-pass a {
    color: var(--labelColor);
    text-decoration: none;
    font-size: 1.4rem;
    text-transform: capitalize;
    transform: all .5s ease;
}

.wrapper .form-container form .forgot-pass a:hover {
    color: var(--mainColor);
}

.wrapper .form-container form .btn {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    color: #333333;
    text-transform: capitalize;
    padding: 10px 30px;

    margin: 0 auto; 
    display: block; 
    height: auto; 
    font-size: 1.6rem;
    font-weight: 500; 
    outline: none;
    border: none;
    border-radius: 8px; 
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    transition: all 0.3s ease; 
    letter-spacing: 0.5px;
    position: relative; 
    overflow: hidden; 
}

.wrapper .form-container form .link {
    text-align: center;
    font-size: 1.4rem;
    color: var(--labelColor);
    margin: 2.5rem 0;
}

.wrapper .form-container form .link a {
    text-transform: capitalize;
    color: var(--mainColor);
    text-decoration: none;
    font-weight: 600;
    transition: all .5s ease;
}

.wrapper .form-container form .link a:hover {
    color: #da4453;
}

.wrapper .sign-up {
    transform: rotate(7deg);
}

.wrapper.animated-signin .form-container.sign-in {
    animation: signin-flip 1s ease-in-out forwards;
}
