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

body {
    height: 100vh;
    display: flex;
    font-family: sans-serif;
    color: rgb(255, 255, 255);
}

.testimonials {
    background-image: url("../img/diagmonds.webp");
    height: 100%;
    width: 55%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.test {
    margin: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70%;
    border-radius: 15px;
}

.test img {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
}

.test .testname {
    font-size: 1rem;
    font-weight: 700;
    margin: 0.5rem 0 0.5rem;
    letter-spacing: 2px;
}

.test .testtext {
    font-size: 1rem;
    text-align: center;
    letter-spacing: 1px;
    font-weight: 300;
    margin: 0.5rem 0;
}

.test .position {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.test .rating {
    font-size: 1rem;
    margin: 0.3rem 0;
    letter-spacing: 3px;
}

.container {
    color: black;
    display: flex;
    flex-direction: column;
    background-color: rgb(255, 255, 255, 0.95);
    background-image: url("../img/triangle.webp");
    justify-content: center;
    align-items: center;
    justify-content: center;
    padding: 5% 5%;
    backdrop-filter: blur(5px);
    width: 45%;
}

h1 {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: clamp(1.5rem, 1.266vw + 0.677rem, 2.5rem);
    margin-bottom: clamp(3rem, 5.333vw + 1.833rem, 4rem);
}

form {
    display: flex;
    flex-direction: column;
    width: 80%;
}

label span {
    display: inline-block;
    font-size: 1rem;
    letter-spacing: 2px;
    position: relative;
    transition: transform 200ms ease-in-out;
}

label[for="email"] span {
    bottom: 4rem;
}

label[for="password"] span {
    bottom: 4.1rem;
}

label[for="cpassword"] span {
    bottom: 1.7rem;
}

input {
    position: relative;
    margin-bottom: 2.5rem;
    padding: 0.5rem 0;
    background-color: transparent;
    outline: none;
    border: unset;
    border-bottom: 1.5px solid black;
    font-size: 1.25rem;
    letter-spacing: 1.5px;
    color: black;
    z-index: 1;
}

input:last-of-type {
    margin-bottom: 0rem;
}

button,
a.oauth {
    display: inline-block;
    text-transform: uppercase;
    margin: 1rem 0;
    margin-top: clamp(1rem, 10.667vw - 1.333rem, 3rem);
    padding: 1rem;
    cursor: pointer;
    outline: none;
    border: none;
    border-radius: 0.25em;
    font-size: 1rem;
    letter-spacing: 2.5px;
    font-weight: 500;
    color: white;
    background-color: black;
    transition: all 150ms ease-in-out;
}

a.oauth {
    color: black;
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
    margin: 0 auto;
    text-transform: unset;
    text-decoration: unset;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 1rem;
    width: max-content;
    padding: 0.5rem 2rem;
    letter-spacing: 1.25px;
}

button:hover,
a.oauth:hover {
    transform: scale(1.025);
}

a {
    color: black;
    transition: all 100ms ease-in-out;
}

a:hover {
    color: rgb(15, 15, 15);
}

p {
    text-align: center;
}

input:focus,
input:valid {
    border-bottom: 2px solid black;
}

input:focus+label span,
input:valid+label span {
    color: black;
}

.back {
    position: absolute;
    color: white;
    bottom: 1.5rem;
    left: 6rem;
    transform: translateX(-50%);
    font-size: 1rem;
    cursor: pointer;
    margin: -0.5rem -0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    background-color: rgb(255, 255, 255);
    transition: all 100ms ease-in-out;
}

.back a {
    color: black;
    padding: 0.5rem 0.75rem;
    margin: -0.5rem -0.75rem;
    text-decoration: none;
}

.back:hover {
    color: rgba(0, 0, 0, 0.95);
    scale: 1.025;
}

@media screen and (max-width: 650px) {
    body {
        flex-direction: column;
        height: auto;
    }

    .testimonials {
        display: none;
    }

    .container {
        color: white;
        width: 100%;
        height: 100vh;
        background-image: url("../img/diagmonds.webp");
    }

    .features li {
        margin: 1rem 0rem 1rem 1rem;
    }

    a {
        color: white;
    }

    a:hover {
        color: rgb(215, 215, 215);
    }

    input {
        color: white;
        border-bottom: 1.5px solid white;
    }

    input:focus,
    input:valid {
        border-bottom: 2px solid white;
    }

    input:focus+label span,
    input:valid+label span {
        color: white;
    }

    button {
        color: black;
        background-color: white;
    }

    .back {
        display: none;
    }
}