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

body {
    height: 100vh;
    display: grid;
    place-items: center;
    font-family: sans-serif;
    background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url("../img/diagmonds.webp");
    color: rgb(255, 255, 255);
}

.errorNotif {
    font-size: 1.25rem;
    padding: 1rem 1.5rem;
}

img {
    height: 4rem;
    width: 4rem;
    display: block;
    margin: 1rem auto;
}

.container {
    display: flex;
    flex-direction: column;
    padding: clamp(2rem, 5.333vw + 0.833rem, 3rem) 3rem;
    width: clamp(20rem, 53.333vw + 8.333rem, 30rem);
}

h1 {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 3rem 0;
}

h1 {
    font-size: clamp(1.5rem, 1.266vw + 0.677rem, 2.5rem);
}


form {
    display: flex;
    flex-direction: column;
}

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

label[for="email"] span {
    bottom: clamp(4rem, 2.667vw + 3.417rem, 4.5rem);
}

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

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

input {
    position: relative;
    margin-bottom: clamp(2rem, 2.667vw + 1.417rem, 2.5rem);
    padding: 0.5rem 0;
    background-color: transparent;
    outline: none;
    border: unset;
    border-bottom: 1.5px solid white;
    font-size: 1.25rem;
    letter-spacing: 1.5px;
    color: white;
    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, 6.076vw - 1.468rem, 4rem);
    padding: 0.75rem;
    cursor: pointer;
    outline: none;
    border: none;
    border-radius: 0.25em;
    font-size: 1rem;
    letter-spacing: 2.5px;
    font-weight: 500;
    background-color: rgb(255, 255, 255);
    transition: all 150ms ease-in-out;
}

a.oauth {
    color: black;
    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;
    font-size: clamp(0.8rem, 0.188vw + 0.730rem, 1rem);
}

button:hover,
a.oauth:hover {
    color: black;
    background-color: rgb(215, 215, 215);
}

a {
    color: rgb(255, 255, 255);
    transition: all 100ms ease-in-out;
}

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

p {
    text-align: center;
}

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

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

.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;
}

.forgot {
    text-align: center;
    margin: 0.5rem 0;
}

@media screen and (max-width: 650px) {
    .back {
        font-size: 1.25rem;
        left: 50%;
        transform: translateX(-50%);
    }
}