*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.contenedor-login{
    min-height: 100vh;
    display: flex;
    background: #121212;
}

.login-imagen{
    width: 50%;
    position: relative;
}

.login-imagen > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flecha-volver{
    position: absolute;
    top: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #00d66b;
    color: black;
    text-decoration: none;
    font-size: 35px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.frase-login{
    position: absolute;
    bottom: 50px;
    left: 50px;
    max-width: 450px;
}

.frase-login h2{
    color: white;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.5;
}

.verde{
    color: #00d66b;
}

.ondas{
    width: 220px;
    height: auto;
    display: block;
    margin-top: 15px;
}

.login-formulario{
    width: 50%;
    background: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-card{
    width: 100%;
    max-width: 450px;
    background: #1b1b1b;
    padding: 50px;
    border-radius: 25px;
}

.logo-login{
    width: 90px;
    display: block;
    margin: auto;
    margin-bottom: 20px;
}

.login-card h1{
    text-align: center;
    color: white;
    margin-bottom: 0; 
}

.campo{
    margin-bottom: 20px;
}

.campo label{
    color: white;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.campo .input-contenedor {
    display: flex;
    align-items: center;
    width: 100%;
    height: 55px;
    background: #2a2a2a;
    border-radius: 15px;
    padding: 0 20px; 
    box-sizing: border-box;
    transition: outline 0.1s ease;
}

.campo .input-contenedor i {
    color: #8a8a8a; 
    margin-right: 15px; 
    font-size: 18px;
}

.campo .input-contenedor input {
    width: 100%;
    height: 100%;
    background: transparent; 
    border: none;
    outline: none;
    color: white;
    font-size: 16px;
    padding: 0; 
}

.campo .input-contenedor:focus-within {
    outline: 2px solid #00d66b;
}

.campo .input-contenedor:focus-within i {
    color: #00d66b;
}

.extras{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    color: white;
    font-size: 14px;
}

.extras a{
    color: #00d66b;
    text-decoration: none;
}

.btn-login{
    width: 100%;
    height: 55px;
    border: none;
    background: #00d66b;
    color: white;
    border-radius: 15px;
    cursor: pointer;
    font-size: 17px;
    font-weight: bold;
    transition: .3s;
}

.btn-login:hover{
    background: #00b85b;
}

.separador{
    margin: 30px 0;
    text-align: center;
    color: #999;
}

.redes{
    display: flex;
    gap: 15px;
}

.redes button{
    flex: 1;
    height: 50px;
    background: #2a2a2a;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
}

.registro{
    text-align: center;
    margin-top: 25px;
    color: white;
}

.registro a{
    color: #00d66b;
    text-decoration: none;
}

.linea-verde1{
    width:55px;
    height:4px;
    background:#00c86f;
    margin-bottom:20px;
}

.line{
    width: 55px;
    height: 4px;
    background: #00c86f;
    margin: 0 auto 20px auto;
}

/* --- RESPONSIVE / ADAPTACIÓN A DISPOSITIVOS --- */

@media(max-width:900px){
    .contenedor-login{
        flex-direction: column;
    }

    .login-imagen{
        width: 100%;
        height: 280px; /* Un poco más de espacio para que no tape la frase */
    }

    .login-formulario{
        width: 100%;
    }
}

@media(max-width:576px){
    .login-card{
        padding: 30px;
    }

    .flecha-volver{
        width: 50px;
        height: 50px;
        font-size: 28px;
        top: 20px;
        left: 20px;
    }

    /* Posicionamiento de la frase en móviles */
    .frase-login{
        left: 20px;
        bottom: 15px; 
        max-width: 85%;
    }

    .frase-login h2{
        font-size: 20px; /* Tamaño optimizado para pantallas chicas */
    }

    /* Ajustes específicos para la onda en celular */
    .ondas{
        width: 140px;       /* Reducimos el tamaño para que sea más pequeña */
        margin-top: 8px;    /* Se ajusta más abajo, pegada al texto */
    }

    .extras{
        flex-direction: column;
        gap: 10px;
    }

    .redes{
        flex-direction: column;
    }
}