* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: cursive;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    background-image: linear-gradient(180deg, #5ceba1, #212824);
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    overflow: auto;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
}

.intro-title {
    margin-top: 1rem;
    text-align: center;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 1.5rem;
}

.form-container {
    width: 100%;
    max-width: 400px;
    margin: auto;
}

form {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    width: 100%;
    margin: auto;
    background-color: #151515;
    border-radius: 1.5rem;
}

label {
    display: flex;
    justify-content: center;
    color: white;
    margin-bottom: 0.4rem;
    gap: 0.6rem;
    font-size: 1.2rem;
}

input {
    color: white;
    position: relative;
    outline: none;
    border: 1.5px solid rgb(249, 249, 249);
    border-radius: 0.4rem;
    padding: 0.4rem 0.6rem;
    background: transparent;
    display: block;
    width: 100%;
    transition: 0.1s ease;
}

.input-text {
    transition: 0.2s ease;
    position: absolute;
    transition: 0.2s ease;
    top: 118px;
    left: 624px;
    font-size: 12px;
    color: rgb(255, 247, 247);
    pointer-events: none;
}

.form-error {
    color: rgba(255, 0, 0, 0.75);
    font-size: 0.75rem;
    font-weight: 100;
}

#password-label {
    display: flex;
}

.password-word {
    display: inline;
}

#checkbox {
    display: inline;
    transform: scale(0.40);
}

input:focus {
    color: #5ceba1;
    border: 3px solid #5ceba1;
}

.avatar {
    width: 13%;
    filter: drop-shadow(0.4rem, red);
    margin: 0;
}

.buttons {
    display: flex;
    gap: 2.5rem;
}

@media screen and (max-width: 768px) {
    form {
        padding: 1rem;
        gap: 1rem;
    }

    .avatar {
        width: 30%;
    }
}