@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap");

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body,
input,
button {
    font-size: 1rem;
    font-family: "Poppins", sans-serif;
}

body {
    color: hsl(0, 0%, 100%);
}

input,
button {
    border: none;
    outline: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/*=============== REGISTER ===============*/
.register {
    position: relative;
    height: 100vh;
    display: grid;
    align-items: center;
}

.register__img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.container {
    position: relative;
    background-color: hsla(0, 0%, 100%, 0.1);
    border: 2px solid white;
    margin-inline: 1.5rem;
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.register__title {
    color: hsl(0, 0%, 100%);
    text-align: center;
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.register__content,
.register__box {
    display: grid;
}

.register__content {
    row-gap: 1.75rem;
    margin-bottom: 1.5rem;
}

.register__box {
    grid-template-columns: max-content 1fr;
    align-items: center;
    column-gap: 0.75rem;
    border-bottom: 2px solid hsl(0, 0%, 100%);
}

.register__icon,
.register__eye {
    font-size: 1.25rem;
    /* Pas de couleur définie - hérite du gris par défaut comme dans testlogin.css */
}

.register__input {
    width: 100%;
    padding-block: 0.8rem;
    background: none;
    color: hsl(0, 0%, 100%);
    position: relative;
    z-index: 1;
}

.register__box-input {
    position: relative;
}

.register__label {
    position: absolute;
    left: 0;
    top: 13px;
    font-weight: 500;
    /* Pas de couleur définie - hérite du gris par défaut comme dans testlogin.css */
    transition: top 0.3s, font-size 0.3s;
}

.register__eye {
    position: absolute;
    right: 0;
    top: 18px;
    z-index: 10;
    cursor: pointer;
    /* Pas de couleur définie - hérite du gris par défaut comme dans testlogin.css */
}

.register__box:nth-child(3) input,
.register__box:nth-child(4) input {
    padding-right: 1.8rem;
}

.register__check,
.register__check-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.register__check {
    margin-bottom: 1.5rem;
}

.register__check-label,
.register__login {
    font-size: 0.813rem;
    /* Couleur blanche uniquement pour les textes de footer comme dans testlogin.css */
    color: hsl(0, 0%, 100%);
}

.register__check-group {
    column-gap: 0.5rem;
}

.register__check-input {
    width: 16px;
    height: 16px;
}

.register__button {
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: hsl(0, 0%, 100%);
    color: hsl(0, 0%, 0%);
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 2rem;
}

.register__button:hover {
    background-color: hsl(0, 0%, 90%);
}

.register__button:disabled {
    background-color: hsl(0, 0%, 70%);
    cursor: not-allowed;
}

.register__login {
    text-align: center;
}

.register__login a {
    color: hsl(0, 0%, 100%);
    font-weight: 500;
}

.register__login a:hover {
    text-decoration: underline;
}

/* Input focus move up label */
.register__input:focus + .register__label {
    top: -12px;
    font-size: 0.813rem;
}

/* Input focus sticky top label */
.register__input:not(:placeholder-shown).register__input:not(:focus) + .register__label {
    top: -12px;
    font-size: 0.813rem;
}

/*=============== BREAKPOINTS ===============*/
/* For medium devices */
@media screen and (min-width: 576px) {
    .register {
        justify-content: center;
    }

    .container {
        width: 400px;
        padding: 4rem 3rem 3.5rem;
        border-radius: 1.5rem;
    }

    .register__title {
        font-size: 2rem;
    }
}