/* styles.css */

.contenedor {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    display: flex;
    flex-direction: row;
    width: 80%;
    max-width: 800px;
    margin-top: 3%;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.login-form, .login-logo {
    flex: 1;
    padding: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 4rem 0;
    text-align: center;
}

.input-field {
    position: relative;
    margin: 30px 0;
}

.input-field .prefix {
    position: absolute;
    margin-top: 25px;
    left: 30px;
    transform: translateY(-50%);
    color: #ccc;
}

.input-field input {
    width: 95%;
    padding: 12px 30px 12px 40px;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    font-size: 16px;
    outline: none;
    position: relative;
    z-index: 1;
    background: transparent;
}

.input-field .input-label {
    position: absolute;
    top: 14px;
    left: 50px;
    transition: 0.3s;
    color: #999;
    pointer-events: none;
    transform-origin: 0 0;
}

input:focus ~ .prefix {
    color: #007bff;
}

.input-field input:focus + .input-label,
.input-field input:not(:placeholder-shown) + .input-label,
label.error + .input-label {
    top: -20px;
    left: 30px;
    font-size: 12px;
    color: #007bff;
}

.input-field input:focus {
    border-color: #007bff;
}

label.error {
    color: #FF0000;
}

.input-field input:has(+ label.error){
    border-bottom: 1px solid #FF0000;
}

.input-field .toggle-password {
    position: absolute;
    top: 30px;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #ccc;
    z-index: 3;
}

.input-field .toggle-password:hover {
    cursor: pointer;
}

.toggle-password.active {
    color: #007bff;
}

.forgot-pwd {
    font-size: medium;
    margin-top: 10px;
    color: #007bff;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}


.login-logo {
    display: flex;
    width: 50%;
    justify-content: center;
    align-items: center;
    background-color: #f6efde;
}

.login-logo img {
    max-width: 100%;
    height: auto;
}

.messages {
    margin-top: 10px;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        width: 95%;
    }

    .contenedor {
        width: 100%;
        padding: 0 10px;
    }

    .login-form, .login-logo {
        width: 100%;
        padding: 20px 10px;
    }

}

@media (max-width: 480px) {
    .input-field input {
        width: 100%;
        padding: 2px 40px 2px 35px;
    }

    .input-field .prefix {
        left: 20px;
        margin-top: 12px;
    }

    .input-field .input-label {
        left: 45px;
        top: 5%
    }

    .input-field .toggle-password {
        top: 15px;
    }
}

/* ########################## RECUPERAR CONTRASEÑA ###################*/

#recover #submit{
    margin-top: 0;
}
input#code::-webkit-inner-spin-button,
input#code::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Ocultar las flechas en Firefox */
input#code[type=number] {
    -moz-appearance: textfield;
}

.msg-mailto {
    position: relative;
    display: block;
    margin-top: 20px;
    font-size: .9em;
}

.back {
    position: absolute;
    top: 15px;
    left: 15px;
}
.back a {
    cursor: pointer;
    text-decoration: none;
    color: #777;
    font-size: large;
}

.back a:hover {
    color: #444;
}

#error span {
    color: #FF0000;
}

#success span {
    color: green;
}

#change .error {
    color: red;
    font-size: 0.9em;
}
#change .success {
    color: green;
    font-size: 0.9em;
}