/* Text Area */
textarea {
    font-family: inherit;
    font-size: inherit;
    border: #adadad 0.2rem solid;
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem;
    transition: all 0.7s;
    resize: none;
}

textarea:focus, textarea:not(:placeholder-shown) {
    border: black 0.2rem solid;
    outline: none;
}

.form-container {
    display: flex;
    flex-direction: column;
    color: black;
    background-color: #f2f2f2;
    min-height: inherit;
}

.form-container form {
    font-family: sans-serif;
    margin: 10vh auto;
    width: 50%;
    max-width: 23rem;
    background-color: white;
    border-radius: 0.8rem;
    box-shadow: 0 0.3rem 0.5rem 0 #00000042;
    padding: 2rem 1rem 2rem 1rem;
    font-size: 1rem;
}

.form-container form h1 {
    font-family: inherit;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

/* Input setup */
.form-container form .wrap-input {
    font-family: inherit;
    width: 100%;
    position: relative;
    padding: 0 0.3rem;
    box-sizing: border-box;
    margin: 3rem 0;
}

.form-container form input[type="email"],
.form-container form input[type="password"],
.form-container form input[type="text"] {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background-color: transparent;
    border-bottom: 0.2rem solid #adadad;
    width: 100%;
    box-sizing: border-box;
    height: 3rem;
    padding: inherit;
    transition: all 0.7s;
}

.form-container form label {
    font-family: inherit;
    font-size: inherit;
    position: absolute;
    display: block;
    color: #999999;
    top: 1rem;
    padding: inherit;
    pointer-events: none;
    transition: all 0.4s;
}

/* Input focus */
.form-container form input:focus,
.form-container form input:not(:placeholder-shown) {
    border-bottom: black 0.2rem solid;
    outline: none;
}

.form-container form input:focus + label,
.form-container form input:not(:placeholder-shown) + label {
    top: -1rem;
}

/* Submit, Reset and Preview button */
.form-container form input[type="submit"],
.form-container form input[type="reset"] {
    font-family: inherit;
    display: block;
    color: white;
    padding: 0.7rem 1rem;
    border: none;
    background-color: #007bff;
    border-radius: 0.5rem;
    cursor: pointer;
    margin: 1rem 0;
    font-size: 1.3rem;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    transition: all 0.5s;
}

/* Hover and active states */
.form-container form input[type="reset"]:hover {
    background-color: #dc3545;
}

.form-container form input[type="submit"]:hover {
    background-color: #0056b3;
}

.form-container form input[type="reset"]:active {
    background-color: #c82333;
}

.form-container form input[type="submit"]:active {
    background-color: #004286;
}

/* Extra Information */
.form-container form aside {
    background-color: #f8f8f8;
    font-size: 0.8rem;
    padding: 0.5rem;
    margin: 1rem;
    color: rgb(204, 204, 204);
}

.form-container form aside h1 {
    color: rgb(42, 42, 42);
}

.form-container form aside a {
    color: rgb(94, 135, 162);
}

.form-container form aside a:hover {
    font-weight: bold;
}

.form-container form aside h2 {
    font-size: inherit;
    color: inherit;
    text-decoration: underline;
    margin-bottom: 0.3rem;
}

.form-container form aside p {
    color: inherit;
}

.error {
    color: red;
    font-size: 0.8rem;
    margin: 0;
}

.error p {
    color: inherit;
}

.check-input {
    font-family: inherit;
    width: 100%;
    position: relative;
    padding: 0 0.3rem;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    margin: 3rem 0;
}

.check-input p {
    color: #999999;
    font-size: inherit;
    margin: 0;
}
