* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    font-size: 62.5%;
}

body {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 200% 200%;
    animation: colors 5s ease infinite;
    background-image: linear-gradient(45deg, #161c24, #273444, #161c24);
}

@keyframes colors {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container {
    width: 40rem;
    height: 50rem;
    min-width: 22rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 1rem;
    border: 0.1rem solid #1E2834;
    background-color: #161c24;
    box-shadow: 0.5rem 0.2rem 1.5rem 0 rgba(0, 0, 0, 0.3);
}

.form-title {
    color: #ffffff;
    text-align: center;
    padding: 2rem;
}

.form-title h1 {
    font-size: 2rem;
}

.form {
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: scroll;
}

.form::-webkit-scrollbar {
    width: 0.5rem;
}

.form::-webkit-scrollbar-thumb {
    border-radius: 1rem;
    background-color: #273444;
}

.form::-webkit-scrollbar-thumb:hover {
    background-color: #ffffff;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-container label {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 2rem;
}

.input-container input {
    width: 100%;
    color: #ffffff;
    padding: 1rem;
    border: 0.1rem solid #1e2834;
    border-radius: 0.5rem;
    text-transform: none;
    background-color: #161c24;
}

.input-container select {
    color: #ffffff;
    border: 0.1rem solid #1e2834;
    border-radius: 0.5rem;
    padding: 1rem;
    background-color: #161c24;
}

.input-container span {
    visibility: hidden;
    text-transform: none;
    font-size: 1.6rem;
}

.btn-group {
    padding: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-group button {
    color: #ffffff;
    width: 50%;
    padding: 0.8rem;
    border: none;
    border-radius: 0.5rem;
    background-color: #1E2834;
    transition: all 0.5s;
    cursor: pointer;
}

.btn-group .btn-submit:hover {
    background-color: #2ec4b6;
}

.btn-group .btn-reset:hover {
    background-color: #dc143c;
}

.input-container.success input {
    border: 0.1rem solid #2ec4b6;
}

.input-container.error input {
    border: 0.1rem solid #dc143c;
}

.input-container.success select {
    border: 0.1rem solid #2ec4b6;
}

.input-container.error select {
    border: 0.1rem solid #dc143c;
}

.input-container.success span {
    color: #2ec4b6;
    visibility: visible;
}

.input-container.error span {
    color: #dc143c;
    visibility: visible;
}

.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
}

.verify-img {
   width: 10rem;
}

.success-text {
    color: #2ec4b6;
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
}

#success-message {
    display: none;
}

/* responsiveness */
@media screen and (max-width: 450px) {
    .container {
        width: 100%;
        height: 100dvh;
        border-radius: 0;
    }
}

@media screen and (max-width: 350px) {
    html {
        font-size: 55%;
    }
}