body {
    background-image: url('../images/circulo_lineas_NUEVO.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1e202e;
    font-family: 'Inter', sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.logo {
    margin-bottom: 30px;
    width: 25%;
    max-width: 200px;
    height: auto;
}

.login-container {
    background-color: #181b2e;
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

label {
    display: block;
    margin: 10px 0 5px;
    font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 10px;
    background-color: #2A2B44;
    border: 1px solid transparent;
    border-radius: 6px;
    color: white;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    outline: none;
    border: 1px solid #545ACF;
    box-shadow: 0 0 0 2px rgba(84, 90, 207, 0.2);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder {
    color: #6f7699;
    opacity: 0.7;
}

.remember-container {
    margin-top: 10px;
}

.remember-container input {
    margin-right: 6px;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    background-color: #545ACF;
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 6px;
    margin-top: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #4549b8;
}

.links {
    font-size: 0.9em;
    color: #888;
    margin-top: 15px;
    text-align: center;
}

.links a {
    color: #888;
    text-decoration: none;
}

.links a:hover {
    color: #155e89;
}

.language-select {
    margin-top: 20px;
    text-align: center;
}

.language-select select {
    padding: 6px;
    border-radius: 4px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding: 10px;
    padding-right: 40px; /* Espacio para el botón de mostrar/ocultar */
    background-color: #2A2B44;
    border: 1px solid transparent;
    border-radius: 6px;
    color: white;
    box-sizing: border-box;
}

.password-wrapper input[type="password"]:focus,
.password-wrapper input[type="text"]:focus {
    outline: none;
    border: 1px solid #545ACF;
    box-shadow: 0 0 0 2px rgba(84, 90, 207, 0.2);
}

.eye-icon {
    width: 18px;
    height: 18px;
    stroke: #6f7699;
}

.toggle-password {
    position: absolute;
    top: 55%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}


.toggle-password:hover {
    color: #3b4cca;
}


.password-container {
    position: relative;
}

/* Media queries para dispositivos móviles */
@media (max-width: 768px) {
    body {
        padding: 15px;
        min-height: 100vh;
        justify-content: center;
        align-items: center;
    }

    .logo {
        width: 60%;
        max-width: 180px;
        margin-bottom: 25px;
    }

    .login-container {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        border-radius: 8px;
    }

    .login-container h2,
    .login-container h4 {
        font-size: 16px;
    }

    label {
        font-size: 11px;
        margin: 8px 0 5px;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"] {
        padding: 12px;
        font-size: 16px; /* Evita zoom en iOS */
    }

    .password-wrapper input[type="password"],
    .password-wrapper input[type="text"] {
        padding: 12px;
        padding-right: 45px;
        font-size: 16px; /* Evita zoom en iOS */
    }

    .submit-btn {
        padding: 12px;
        font-size: 14px;
        margin-top: 20px;
    }

    .links {
        margin-top: 20px;
        font-size: 0.85em;
    }

    .links p {
        margin: 10px 0;
    }

    .remember-container {
        margin-top: 15px;
    }

    .remember-container label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
        justify-content: center;
        align-items: center;
    }

    .logo {
        width: 70%;
        max-width: 150px;
        margin-bottom: 0px;
    }

    .login-container {
        padding: 15px;
    }

    .login-container h2,
    .login-container h4 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    p {
        font-size: 11px;
        line-height: 1.5;
    }

    label {
        font-size: 10px;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"] {
        padding: 10px;
    }

    .password-wrapper input[type="password"],
    .password-wrapper input[type="text"] {
        padding: 10px;
        padding-right: 40px;
    }

    .submit-btn {
        padding: 11px;
        font-size: 13px;
    }

    .toggle-password {
        right: 8px;
    }

    .eye-icon {
        width: 16px;
        height: 16px;
    }
}

/* Ajustes para pantallas muy pequeñas (menos de 360px) */
@media (max-width: 360px) {
    .logo {
        width: 80%;
        max-width: 120px;
    }

    .login-container {
        padding: 12px;
    }

    .login-container h2,
    .login-container h4 {
        font-size: 14px;
    }

    p {
        font-size: 10px;
    }
}