@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
    font-size: 62.5%; /* 10px */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    font-family: Roboto, sans-serif;
}

body {
    background-color: royalblue;
    font-size: 1.6rem;
}

.container, .modal-wrapper {
    height: 100vh;
    display: grid;
    place-content: center;
}

form, .modal {
    background-color: white;
    padding: 4.8rem 6.4rem;
    max-width: 42rem;
    margin-inline: auto;

    display: flex;
    flex-direction: column;
    gap: 20px;

    border-radius: 6px;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.10);
}

.container h1 {
    color: #0C3440;
    font-size: 3.2rem;
    font-weight: 700;
}

.container .input-wrapper {
    color: #00453A;
    font-size: 1.4rem;
}

.container input {
    width: 100%;
    margin-top: 8px;
    padding: 1.6rem;
    border-radius: 4px;
    border: 1px solid rgba(73, 80, 87, 0.30);
    background: #DCE2E9;
}

form input:focus {
    outline: 2px solid #212529;
}

form input::placeholder {
    color: rgba(73, 80, 87, 0.50);
}

.container button {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;

    padding: 1.6rem;
    border-radius: 4px;
    background: #02799D;
    border: none;

    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    cursor: pointer;
    transition: 1s;
}

.container button:hover {
    background-color: #00556e;
}

/* Modal */
.modal-wrapper {
    position: absolute;
    background: rgba(0, 0, 0, 0.70);
    inset: 0;
    max-width: 100%;

    opacity: 0;
    visibility: hidden;
}

.modal {
    position: relative;
}

.modal-wrapper.open {
    opacity: 1;
    visibility: visible;
}

.modal button {
    background: none;
    border: none;

    position: absolute;
    top: 1.6rem;
    right: 1.6rem;

    cursor: pointer;

    transition: transform .3s;
}

.modal button:hover {
    transform: scale(1.1);
}

/* Alert Error */
.alert-error.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.alert-error {
    position: absolute;
    background-color: red;
    top: 0;
    right: 0;
    left: 0;
    text-align: center;

    color: white;
    padding: .8rem;
    font-weight: 700;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-30px);
    transition: transform .5s;
}