html {
    background: linear-gradient(#34495e, #2c3e50);
}

html {
    display: flex;
    min-height: 100%;
    justify-content: center;
    align-items: center;
}

body {
    margin: 0;
    max-width: 100%;
    padding: 1rem;
}

body, form input {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.5;
}

h1 {
    color: #2c3e50;
    font-size: 4rem;
    font-weight: 500;
    line-height: 1;
    margin: 1.5rem 0 0 0;
    text-align: center;
}

p {
    color: #34495e;
    font-size: 1.25rem;
    font-weight: 400;
}

main {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 0.0625rem 0.9375rem rgba(28, 32, 36, .15);
    margin: auto;
    width: 44rem;
    max-width: calc(100% - 8rem);
    padding: 3rem;
}

main .logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 12rem;
}

form label {
    color: #34495e;
    font-size: 0.75rem;
}

form dt {
    display: block;
}

form dd {
    display: block;
    margin-left: 0;
}

form input {
    border: 0.0625rem solid #95a5a6;
    border-radius: 0.3125rem;
    box-shadow: inset 0 0.0625rem 0.125rem rgba(28, 32, 36, 0.075);
    font-size: 1rem;
    padding: 0.625rem;
    outline: 0;
}

form {
    margin-left: auto;
    margin-right: auto;
}

form input[type=text] {
    border-color: #95a5a6;
    margin-bottom: 0.5rem;
    margin-right: 0.5rem;
    max-width: 92%;
    width: 27.5rem;
}

form input:focus,
form input:focus:hover {
    border-color: #3498db;
    box-shadow: inset 0 0.0625rem 0.125rem rgba(28, 32, 36, 0.075), 0 0 0 0.2rem rgba(52, 152, 219, 0.4);
}

form input:hover {
    border-color: #3498db;
    box-shadow: inset 0 0.0625rem 0.125rem rgba(28, 32, 36, 0.075), 0 0 0 0.2rem rgba(52, 152, 219, 0.2);
}

form input.invalid-input {
    border-color: #c0392b;
}

form input.invalid-input:focus,
form input.invalid-input:focus:hover {
    border-color: #c0392b;
    box-shadow: inset 0 0.0625rem 0.125rem rgba(28, 32, 36, 0.075), 0 0 0 0.2rem rgba(192, 57, 43, 0.4);
}

form input.invalid-input:hover {
    border-color: #c0392b;
    box-shadow: inset 0 0.0625rem 0.125rem rgba(28, 32, 36, 0.075), 0 0 0 0.2rem rgba(192, 57, 43, 0.2);
}

form input.btn-delete {
    border-color: #c0392b;
    background-color: #e74C3c;
    color: #fff;
    min-width: 10rem;
}

form input:focus.btn-delete,
form input:focus:hover.btn-delete {
    border-color: #c0392b;
    box-shadow: inset 0 0.0625rem 0.125rem rgba(28, 32, 36, 0.075), 0 0 0 0.2rem rgba(192, 57, 43, 0.4);
}

form input:hover.btn-delete {
    border-color: #c0392b;
    box-shadow: inset 0 0.0625rem 0.125rem rgba(28, 32, 36, 0.075), 0 0 0 0.2rem rgba(192, 57, 43, 0.2);
}

form .invalid-feedback {
    color: #c0392b;
}

.success {
    color: #16a085;
    text-align: center;
}

@media screen and (max-width: 600px) {
    html {
        font-size: 12px;
    }

    h1 {
        font-size: 2.25rem;
    }
}
