form {
    max-width: 600px;
    background-color:rgb(216, 218, 255);
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #07629b;
    border-radius: 8px;
    box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.45)
}

h1 {
    text-align: center;
    color:#07629b;
}

div {
    margin: 1em 0;
}

.withBorder input:valid {
    background-color: rgb(186, 255, 232);
    border: none;
    outline: 2px solid #07629b;
    border-radius: 5px;
    accent-color: rgb(255, 35, 255);
}

.withBorder input:invalid {
    background-color: rgba(255, 114, 114, 0.842);
    border: none;
    outline: 2px solid #07629b;
    border-radius: 5px;
    accent-color: rgb(255, 39, 255);
}

label {
    display: block;
    margin-bottom: 0.8em;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #07629b;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    border-color: #07629b;
    outline: none;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 0.5em;
}

fieldset {
    display: inline;
    width: 45%;
    border: 1px solid #07629b;
    border-radius: 4px;
    padding: 12px;
    margin: 1em 0;
    accent-color: rgb(173, 27, 173);
}

legend {
    font-weight: bold;
}

input[type="submit"] {
    background-color: #77b2d6;
    color: white;
    padding: 10px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: rgb(45, 22, 107);
}

input:placeholder-shown {
    outline: 0.15em solid #07629b;
}

input::placeholder {
    color: #0000007a;
}