@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial;
}

a{
    text-decoration: none;
    color: #0A68B1;
}

body {
    margin: 0;
    height: 100%; 
    display: flex;
    justify-content: center; 
    align-items: flex-start; 
    flex-direction: column; 
    overflow-x: hidden; 
    color: #2b2b2b;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/FIM-2.jpg'); 
    background-size: cover;
    background-position: center;
    opacity: 0.5; 
    z-index: -1; 
}

main {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    width: 100%;
    height: 100vh; 
    padding: 20px; 
    box-sizing: border-box;
    overflow-y: auto; 
}

.content{
    background-color: #ffffff;
    width: 20%;
    border-radius: .5em;
    box-shadow: 0 0 5px #585858;
    padding: 0 2.5em;
}

.logo-text{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1em 0;
    padding-top: 2.5em;
}

.logo-text img{
    width: 50px;
    padding-left: 1em;
    padding-right: 1em;
}

.logo-text .text{
    font-size: .5em;
    text-align: start;
    width: 80%;
}

.login{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 3em;
}

.login form{
    width: 90%;
    display: flex;
    flex-direction: column;
}

form .textbox{
    display: flex;
    flex-direction: column;
    position: relative;
}

.textbox label{
    text-align: start;
    font-weight: bolder;
    color: #0A68B1;
    padding: 1em 0 .2em 0;
    font-size: 1em;
}

.textbox input{
    height: 30px;
    font-size: 1.2em;
    padding-left: .5em;
    border-radius: .2em;
    border: none;
    box-shadow: 0 0 2px #2b2b2b;
}

.textbox .eye{
    position: absolute;
    bottom: 4px;
    right: 10px;
    cursor: pointer;
}

.password-update{
    text-align: center;
    margin: 1em 0;
    font-size: .8em;
}

button{
    background-color: #0A68B1;
    border: none;
    border-radius: .2em;
    font-size: 1.2em;
    height: 40px;
    color: #ffffff;
    cursor: pointer;
}

#success-message {
    position: fixed;
    top: 20px;
    right: -300px; /* Comienza fuera de la pantalla */
    background: #25D366;
    color: white;
    font-weight: 500;
    padding: 10px 30px;
    border-radius: .5em;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: right 0.5s ease-in-out; /* Animación suave */
    z-index: 1000;
}

#error-message {
    position: fixed;
    top: 20px;
    right: -300px; /* Comienza fuera de la pantalla */
    background: #ff4726;
    color: white;
    font-weight: 500;
    padding: 10px 30px;
    border-radius: .5em;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: right 0.5s ease-in-out; /* Animación suave */
    z-index: 1000;
}


@media screen and (max-width: 1500px) {
    .logo-text {
        display: block;
    }
    
    .logo-text .text {
        display: none;
    }
    
}