body {
    background-color: #f0f2f5;
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 900px;
    max-width: 100%;
    min-height: 500px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;

    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-form-side {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-side h2 {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 34px;
}

.login-form-side form {
    width: 100%;
}

.input-group-custom {
    width: 100%;
    background-color: #f1f3f5;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.input-group-custom:focus {
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(81, 70, 137, 0.15);
}

.password-field {
    position: relative;
    margin-bottom: 28px;
}

.password-field .input-group-custom {
    padding-right: 52px;
    margin-bottom: 0;
}

.password-toggle {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: #514689;
    background-color: rgba(81, 70, 137, 0.08);
    outline: none;
}

.password-toggle .icon-eye-off,
.password-toggle.is-visible .icon-eye {
    display: none;
}

.password-toggle.is-visible .icon-eye-off {
    display: block;
}

.btn-ingresar {
    width: 100%;
    background-color: #514689;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-ingresar:hover {
    background-color: #3f366b;
}

.login-logo-side {
    border-left: 1px solid #f0f0f0;
    padding: 40px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-logo-side img {
    width: 336px;
    max-width: 100%;
    height: auto;
    display: block;
}

.login-error {
    background-color: #fdecea;
    color: #b42318;
    border: 1px solid #f5c2c0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 18px;
    text-align: center;
}

/* TABLET Y CELULAR */
@media (max-width: 768px) {
    body {
        padding: 18px;
        align-items: flex-start;
    }

    .login-container {
        grid-template-columns: 1fr;
        min-height: auto;
        margin-top: 24px;
    }

    .login-logo-side {
        grid-row: 1;
        border-left: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 32px 24px 20px;
    }

    .login-form-side {
        grid-row: 2;
        padding: 36px 32px;
    }

    .login-logo-side img {
        width: 264px;
    }

    .login-form-side h2,
    .login-form-side p {
        text-align: center;
    }
}

/* CELULAR PEQUEÑO */
@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .login-container {
        width: 100%;
        border-radius: 16px;
        margin-top: 10px;
    }

    .login-logo-side {
        padding: 28px 18px 16px;
    }

    .login-logo-side img {
        width: 222px;
    }

    .login-form-side {
        padding: 28px 22px 32px;
    }

    .login-form-side h2 {
        font-size: 1.6rem;
    }

    .input-group-custom {
        padding: 11px 13px;
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .btn-ingresar {
        padding: 11px;
        font-size: 0.95rem;
    }
}
