.wpte-lrf-wrap.wpte-login {
        max-width: 450px;
        width: 100%;
        margin: 0 auto;
        padding: 32px 28px;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        background: #ffffff;
        border-radius: 20px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
        box-sizing: border-box;
        margin-bottom: 4em;

    & .flexy-columns {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    /* Estilos para todos los inputs de texto y password */
    & input[type="text"],
    & input[type="password"] {
        width: 100%;
        height: 52px;
        padding: 0 16px;
        font-size: 15px;
        border: 1.5px solid #e2e8f0;
        border-radius: 12px;
        background: #f8fafc;
        box-sizing: border-box;
        transition: all 0.2s ease;
        font-family: inherit;
    }

    /* Focus en inputs */
    & input[type="text"]:focus,
    & input[type="password"]:focus {
        outline: none;
        border-color: var(--primary-color);
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    }

    /* Placeholder styling */
    & input::placeholder {
        color: #94a3b8;
        font-size: 15px;
    }

    /* Wrapper para el campo de contraseña */
    & .password-wrapper {
        position: relative;
        width: 100%;
    }

    & .password-wrapper input {
        padding-right: 48px !important;
    }

    /* Botón toggle de contraseña */
    & .toggle-password {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        font-size: 18px;
        color: #94a3b8;
        user-select: none;
        transition: all 0.2s ease;
        background: #f8fafc;
        padding: 8px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    & .toggle-password:hover {
        color: var(--primary-color);
        background: #f1f5f9;
    }

    & .toggle-password i {
        pointer-events: none;
        font-size: 18px;
    }

    /* Checkbox wrapper */
    & .checkbox-wrapper {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 4px 0;
    }

    & .checkbox-wrapper input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin: 0;
        cursor: pointer;
        accent-color: var(--primary-color);
    }

    & .checkbox-wrapper label {
        font-size: 14px;
        color: #475569;
        cursor: pointer;
        user-select: none;
        margin: 0;
    }

    /* Botón de login */
    & .custom-span[type="button"] {
        width: 100%;
        height: 52px;
        background: var(--primary-color);
        color: #ffffff;
        font-size: 16px;
        font-weight: 600;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.2s ease;
        font-family: inherit;
        margin-top: 4px;
    }

    & .custom-span[type="button"]:hover {
        background: var(--primary-color-lightest);
        color: var(--primary-color);
    }

    & .custom-span[type="button"]:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    & .wpte-lrf-footer {
        text-align: center;
        margin-top: 24px;
        padding-top: 20px;
        border-top: 1px solid #e2e8f0;
    }

    & .wpte-lrf-footer a {
        font-size: 14px;
        color: var(--primary-color) !important;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    & .wpte-lrf-footer a:hover {
        text-decoration: underline;
        opacity: 0.8;
    }

    /* Enlace de registro */
    & .register-link {
        text-align: center;
        margin-top: 20px;
        font-size: 14px;
        color: #475569;
    }

    & .register-link a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 600;
        transition: all 0.2s ease;
    }

    & .register-link a:hover {
        text-decoration: underline;
        opacity: 0.8;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px)
{
    .wpte-lrf-wrap.wpte-login {
        max-width: 95%;
        padding: 24px 20px;
        margin: 16px auto;
        margin-bottom: 4em;
    
        & .flexy-columns {
            gap: 16px;
        }
        
        & input[type="text"],
        & input[type="password"],
        & .custom-span[type="button"] {
            height: 48px;
        }
        
        & .toggle-password {
            font-size: 16px;
            right: 14px;
            padding: 6px;
        }
        
        & .toggle-password i {
            font-size: 16px;
        }
        
        & .password-wrapper input {
            padding-right: 44px !important;
        }
    }
}

@media (max-width: 480px)
{
    .wpte-lrf-wrap.wpte-login {
        padding: 20px 16px;
        border-radius: 16px;
        margin-bottom: 4em;
    
        & .register-link {
            font-size: 13px;
        }
        
        & .wpte-lrf-footer a {
            font-size: 13px;
        }
    }
}