@import url('https://fonts.googleapis.com/css2?family=Asap+Condensed:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Bree+Serif&family=Tilt+Neon&display=swap');
/*
  Estilo para contenedor de inicio de sesión
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Tilt Neon", sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    background: #141e30; 
    background: -webkit-linear-gradient(to right, #141e30, #243b55); 
    background: linear-gradient(to right, #141e30, #243b55);
}

.login-container {
    position: relative;
    width: 400px;
    padding: 10px 40px;
    border-radius: 12px;
    animation: fadeIn 0.8s forwards;
    background: rgba(255, 255, 255, 0.98);   
    z-index: 200;
}

@keyframes fadeIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.login-container .perfil{
    position: relative;
    width: 100%;
    height: 160px;
    text-align: center;
    top: -72px;
}
.login-container img{
    position: relative;
    width: 68%;
    filter: drop-shadow(2px 1px 18px hsla(228, 80%, 4%, 0.92));
}

.login-container h2 {
    color: #333;
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid #fff;
    background: #fff;
    border-radius: 8px;
    font-size: 14.5px;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 2px 0 12px hsla(228, 80%, 4%, .12);    
}

/* Estilos para autofill */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
    -webkit-text-fill-color: #333 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-group label {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #b8b9bb;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 5px;
    font-weight: 600;
}
.input-group label .lbl-icon{
    padding: 0px 5px;
}

/*llenar input*/
.input-group input:focus,
.input-group input:valid {
    border-color: rgba(7, 79, 167, 0.85);
    background: #fff;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: 0;
    left: 10px;
    font-size: 13.8px;
    background: #fff;
    color: #2179b4;
    padding: 2px 4px;
    border-radius: 4px;
}

.input-group input:focus + label .lbl-icon,
.input-group input:valid + label .lbl-icon {
   display: none;
}

.input-group input:-webkit-autofill + label {
    top: 0;
    left: 10px;
    font-size: 13px;
    background: #fff;
    color: rgba(7, 79, 167, 0.85);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    margin-bottom: 3%;
    background: #49acef;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(1, 1, 1, 0.4);
}
.submit-btn:active {
    transform: translateY(2px);
    box-shadow: 0 5px 15px rgba(1, 1, 1, 0.2);
}

@media (max-width: 500px) {

    .login-container {
        width: 90%;
        padding: 20px;
        margin: 20px;
    }
    .login-container .perfil{
        height: 120px;
    }
    .login-container img{
        width: 60%;
    }

}