* {
  box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    color: #fff;
}

.fondologin {
    position: fixed;
    inset: 0;
    background-image: url('../media/portada.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.overlay {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
    z-index: 1;
}


.loginpanel {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    width: 380px;
    padding: 2.5rem;
    margin-left: 250px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    animation: slideIn 0.8s ease;
}

.logocontainer {
    text-align: center;
    margin-bottom: 15px;
}

.logo {
    width: 100px;
    height: auto;
    object-fit: contain;
}

.loginpanel h1 {
    margin: 10px 0 8px 0;
    color: #023681;
    font-size: 1.4rem;
    text-align: center;
}

#formulario label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

#formulario input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: 0.3s;
}

#formulario input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.4);
}

.btnlog {
    width: 100%;
    background: #023681;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btnlog:hover {
    background: #ff9000;
}

.note {
    font-size: 0.9rem;
    color: #333;
    text-align: center;
    margin-top: 10px;
}

.note a {
    color: #007bff;
    text-decoration: none;
}

.note a:hover {
    text-decoration: underline;
}   



@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@media (min-width: 1025px) {
    .loginpanel {
        margin-left: 150px;
    }
}


@media (max-width: 1024px) {
    .loginpanel {
        width: 340px;
    }
}


@media (max-width: 480px) {
    body {
        overflow-y: auto;
    }

    .overlay {
        justify-content: center;
        background: rgba(0, 0, 0, 0.55);
    }

    .loginpanel {
        margin: 40px auto;
        width: 90%;
        padding: 1.8rem;
    }

    .logo {
        width: 100px;
    }
    
    .loginpanel h1 {
        font-size: 1.4rem;
    }
      
    .fondologin{
        background-image: none;
        background-color: white;
    }
    
    #formulario input {
        padding: 10px;
    }
    
    .btnlog {
        font-size: 1rem;
        padding: 12px;
    }
    
}
