@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap');

*, *::before, *::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body, input {
    font-family: "Poppins", sans-serif;
}

main{
    width: 100%;
    min-height: 100dvh;
    overflow: hidden;
    background-color: #a4c4b5;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box {
    position: relative;
    width: 100%;
    max-width: 1020px;
    height: 640px;
    background-color: #fff;
    border-radius: 2rem;
    box-shadow: 0 60px 40px -30px rgba(0, 0, 0, 0.27);
}

.inner-box {
    position: absolute;
    width: calc(100% - 4.1rem);
    height: calc(100% - 4.1rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}


.forms-wrap{
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}


.logo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 90px;
    margin: 0.5rem;
}

.logo h4 {
    font-size: 2rem;
    margin-top: 0.2rem;
    letter-spacing: -0.5px;
    color: #151111;
}

.text {
    text-align: center;
    font-size: 1.3rem;
}

.back {
    text-align: center;
}

.back a {
    font-size: 1rem;
    color:#151111;
}

.input-wrap{
    position: relative;
    height:37px;
    margin-bottom: 2rem;
}

.input-field{
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    outline: none;
    border-bottom: 1px solid #bbb;
    transition: 0.4s;
    text-align: center;
}

label {
    width: 100%;
    position:absolute;
    left:50%;
    transform: translateX(-50%);
    padding: 0;
    font-size: 0.95rem;
    color: #bbb;
    pointer-events: none;
    transition: 0.4s;
}

.input-field.active {
    border-bottom-color: #151111;
}

.input-field.active + label {
    font-size: 0.8rem;
    top:-10px;
}

.sign-btn {
    display: inline-block;
    width: 100%;
    height: 43px;
    background-color: #151111;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 0.8rem;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    transition: 0.3s;
}

.sign-btn:hover {
    background-color: #bcd1c7;
}

.text h3 {
    background-color: #e0ffdd;
    padding: 0.2rem 0.4rem;
    border: solid #bafab1 0.15rem;
    border-radius: 0.2rem;
}

@media (max-width: 530px) {
    main {
        padding: 1rem;
    }

    .box{
        -ms-overflow-style: none; /* for Internet Explorer, Edge */
        scrollbar-width: none; /* for Firefox */
        max-height: calc(100dvh - 2rem);
        overflow-y: scroll;
        border-radius: 2rem;
    }

    .box::-webkit-scrollbar {
        display: none; /* for Chrome, Safari, and Opera */
      }
}