/* Importing Google font - Open Sans */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

body #fondoimage{
    height: 90vh;
    width: 100%;
    background: url("../img/wave.svg");
    background-repeat: no-repeat;
}

.form-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 10;
    width: 20em;
}

.show-popup .form-popup {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    text-align: center;
}

.blur-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    height: 100%;
    width: 100%;
    opacity: 0;
    pointer-events: none;

    transition: 0.1s ease;
}

.show-popup .blur-bg-overlay {
    opacity: 1;
    pointer-events: auto;
}

.form-popup .form-box {
    display: flex;
}

.form-box .form-details {
    width: 100%;
    color: #fff;
    max-width: 330px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.form-details {
    padding: 0 40px;
    background: url("../img/ESjara_logo");
    background-position: center;
    background-size: cover;
}

.form-box .form-content {
    width: 100%;
}

.form-box h2 {
    color: #66180BFF;
    text-align: center;
    margin-bottom: 29px;
}

form .input-field {
    position: relative;
    height: 50px;
    width: 100%;
    margin-top: 20px;
}

.input-field input {
    height: 100%;
    width: 100%;
    background: none;
    outline: none;
    font-size: 0.95rem;
    padding: 0 15px;
    border: 1px solid #717171;
    border-radius: 3px;
}

.input-field input:focus {
    border: 1px solid #66180BFF;
}

.input-field label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #4a4646;
    pointer-events: none;
    transition: 0.2s ease;
}

.input-field input:is(:focus, :valid) {
    padding: 16px 15px 0;
}

.input-field input:is(:focus, :valid)~label {
    transform: translateY(-120%);
    color: #66180BFF;
    font-size: 0.75rem;
}
.input-field input[type="password"]:not(:placeholder-shown) + label {
  transform: translateY(-120%);
    color: #66180BFF;
    font-size: 0.75rem;
}
.input-field input[type="email"]:not(:placeholder-shown) + label {
  transform: translateY(-120%);
    color: #66180BFF;
    font-size: 0.75rem;
}
.input-field input[type="email"]:not(:placeholder-shown),.input-field input[type="password"]:not(:placeholder-shown){
     padding: 16px 15px 0;
}
.form-box a {
    color: #66180BFF;
    text-decoration: none;
}

.form-box a:hover {
    text-decoration: underline;
}

form :where(.forgot-pass-link, .policy-text) {
    display: inline-flex;
    margin-top: 13px;
    font-size: 0.95rem;
}

form button {
    width: 100%;
    color: #fff;
    border: none;
    outline: none;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 3px;
    cursor: pointer;
    margin: 25px 0;
    background: #66180BFF;
    transition: 0.2s ease;
}

#DescargarAPP {
    position: fixed;
    bottom: 10px;
    right: 10px;
    text-align: center;
    color: #fff;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 3px;
    cursor: pointer;
    background: #66180BFF;
}

form button:hover {
    background: #0097a7;
}

.form-content .bottom-link {
    text-align: center;
}

.form-popup.show-signup .login {
    display: none;
}


#alerta{
    margin-top: 5px;
    color: red;
}


.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-30%);
    cursor: pointer;
}

@media (max-width: 950px) {
}

@media (max-width: 760px) {
    .form-popup {
        width: 95%;
    }

    .form-box .form-details {
        display: none;
    }

    .form-box .form-content {
        padding: 30px 20px;
    }
}

#textLegal{
   text-align: center; font-size: 0.6rem; line-height: 1.2;
}

#imgLogoYesWeCast{
    width: 300px;
}
#imgLogoLegal{
    max-width: 41vh;
    height: auto;
}
#blockLegal{
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 51rem;
    text-align: center;
}

/* Fondo diferente solo en móviles */
@media (max-width: 600px) {
    #textLegal{
        font-size: 0.4rem; line-height: 1.1;
    }
    #imgLogoYesWeCast{
        width: 150px;
    }
    #imgLogoLegal{
        max-width: 31vh; height: auto;
    }
    .form-popup{
        top: 45%;
    }
    #blockLegal{
        bottom: 60px;
    }
}