@import url("./colors.css");

.page_container {
    width: 100%;
    height: 100%;
}

.form_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* max-width: 70%; */
    min-width: 700px;
    margin: auto;
    padding: 40px 40px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); */
    box-shadow: 0 0 50px rgb(0 0 0 / 50%);
    background-color: #fff;
}

.row-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 100%;
}

.container-h {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
}

form.container-h {
    min-width: 85%;
}

.container-w {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: auto;
    height: auto;
    max-width: 100%;
}

.container-w label {
    margin-top: 25px;
    margin-bottom: 5px;
    font-size: 14px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-weight: bold;
    color: black;
}

.container-w input[type=text], .container-w input[type=number], .container-w input[type=mail], .container-w input[type=date], select {
    background: none;
    outline: none;
    width: 250px;
    padding: 10px;
    border: 1px solid rgba(121, 121, 121, 0.4);
    border-radius: 5px;
    font-family:'Lato';
}

.container-field {
    width: 100%;
    position: relative;
    margin-bottom: 15px;
}

.container-field.alert {
    color: var(--alert-color);
}

.container-field::before {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    top: 65%;
    background-color: var(--gray-color);
    position: absolute;
}

.container-field::after {
    content: "";
    display: block;
    width: 0px;
    height: 2px;
    top: 65%;
    left: 50%;
    right: 0;
    background-color: var(--input-hover-color);
    position: absolute;
    transition: all 0.5s ease;
}

.container-field:focus-within:after {
    content: "";
    display: block;
    width: 100%;
    left: 0%;
    right: 0;
    background-color: var(--input-hover-color);
    position: absolute;
    transition: all 0.5s ease;
}

.container-field.alert::before {
    background-color: var(--alert-color);
}

.container-field.alert::after {
    background-color: var(--alert-color);
}

.floating-label {
    height: 20px;
    left: 0px;
    top: -10px;
    margin: 0;
    font-size: 14px;
    color: var(--input-hover-color);
    pointer-events: none;
    transition: all 0.3s ease;
    position: absolute;
}

.floating-label.alert {
    color: var(--alert-color);
}

.input_text-flat:not(:focus):placeholder-shown ~ .floating-label{
    top: 7px;
    font-size: 16px;
    color: var(--gray-color);
    opacity: 1;
}

.input_text-flat:not(:focus):placeholder-shown ~ .floating-label.alert{
    color: var(--alert-color);
}

.input_text-flat {
    display: flex;
    flex-direction: column;
    outline: none;
    border: none;
    width: 100%;
    height: 30px;
    font-size: 16px;
    padding-bottom: 10px;
    background: transparent;
}

.alert-msg {
    top: 75%;
    font-size: 14px;
    color: var(--alert-color);
    transition: all 0.5s ease;
    position: absolute;
}

.btn_alert {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 5px;
    padding: 0px 8px;
    margin-top: 25px;
    color: white;
    background-color: var(--alert-color);
    transition: all 0.4s ease;
}

.btn_alert:hover {
    background-color: var(--alert-color-hover);
    cursor: pointer;
    transition: all 0.4s ease;
}

@media screen and (max-width: 800px) {
    .form_container {
        min-width: 65%;
    }
  }